From 8d3094996929ad3906eb5a034e5ff057d0eda185 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Wed, 9 Jan 2019 11:51:17 +0100 Subject: [PATCH] Revert "Make eslint happy" This reverts commit 132f25e14a5be5bedd6ef6cd91df3a346580a538. --- js/h5p.js | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/js/h5p.js b/js/h5p.js index 4787d48..c25520c 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -144,9 +144,10 @@ H5P.init = function (target) { '' + '') .prependTo($container) - .children().click(function () { - H5P.fullScreen($container, instance); - }) + .children() + .click(function () { + H5P.fullScreen($container, instance); + }) .keydown(function (e) { if (e.which === 32 || e.which === 13) { H5P.fullScreen($container, instance); @@ -214,7 +215,7 @@ H5P.init = function (target) { // Auto save current state if supported if (H5PIntegration.saveFreq !== false && ( - instance.getCurrentState instanceof Function || + instance.getCurrentState instanceof Function || typeof instance.getCurrentState === 'function')) { var saveTimer, save = function () { @@ -931,15 +932,20 @@ H5P.Dialog = function (name, title, content, $element) { .click(function () { self.close(); }) - .children('.h5p-inner').click(function () { - return false; - }) - .find('.h5p-close').click(function () { - self.close(); - }).end() - .find('a').click(function (e) { - e.stopPropagation(); - }).end() + .children('.h5p-inner') + .click(function () { + return false; + }) + .find('.h5p-close') + .click(function () { + self.close(); + }) + .end() + .find('a') + .click(function (e) { + e.stopPropagation(); + }) + .end() .end(); /**