From 4685f08647b90278ea4a27aa264006a9f6d90c14 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 23 Nov 2018 18:35:15 +0100 Subject: [PATCH] #2370 --- js/libs/scorm/scorm.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); }); -- 2.39.5