]> _ Git - fluidbook-html5.git/commitdiff
#2370
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 23 Nov 2018 17:35:15 +0000 (18:35 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 23 Nov 2018 17:35:15 +0000 (18:35 +0100)
js/libs/scorm/scorm.js

index d915925eb2f04079e66950c5b8994b00d2efe9fa..031b40842a24d2280279a87ae55a37d045ff95f2 100644 (file)
@@ -82,7 +82,7 @@ function initScormEvents() {
     try {
         if (currentLocation.indexOf('page_') === 0) {
             var e = currentPage.split('_');
-            if (e.length == 2 && e[0] == 'page') {
+            if (e.length === 2 && e[0] === 'page') {
                 fluidbook.setCurrentPage(e[1]);
             }
         } else if (currentLocation.indexOf('{') === 0) {
@@ -105,8 +105,7 @@ function initScormEvents() {
         });
     });
 
-    $(fluidbook).on('fluidbook.maxpage.set', function (e, page) {
-        scormSaveCurrentPosition(undefined, page);
+    $(fluidbook).on('fluidbook.maxpage.set', function (e, page) {        scormSaveCurrentPosition(undefined, page);
     });