From: Vincent Vanwaelscappel Date: Fri, 23 Nov 2018 17:35:15 +0000 (+0100) Subject: #2370 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4685f08647b90278ea4a27aa264006a9f6d90c14;p=fluidbook-html5.git #2370 --- diff --git a/js/libs/scorm/scorm.js b/js/libs/scorm/scorm.js index d915925e..031b4084 100644 --- a/js/libs/scorm/scorm.js +++ b/js/libs/scorm/scorm.js @@ -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); });