Skip to content

Commit

Permalink
Revert "Make eslint happy"
Browse files Browse the repository at this point in the history
This reverts commit 132f25e.
  • Loading branch information
icc committed Jan 9, 2019
1 parent 9a7a343 commit 8d30949
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions js/h5p.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@ H5P.init = function (target) {
'</div>' +
'</div>')
.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);
Expand Down Expand Up @@ -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 () {
Expand Down Expand Up @@ -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();

/**
Expand Down

0 comments on commit 8d30949

Please sign in to comment.