@clappr/plugins
Advanced tools
Comparing version 0.8.3 to 0.8.4
{ | ||
"name": "@clappr/plugins", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"description": "Main plugins for the Clappr project", | ||
@@ -101,3 +101,3 @@ "main": "./dist/clappr-plugins.js", | ||
}, | ||
"gitHead": "2b04d32b571911137d77b4ce08a611e6262f93d2" | ||
"gitHead": "dd48280c70fe5c5530d0ce7a816db51c4a001193" | ||
} |
@@ -157,6 +157,8 @@ /* eslint-disable */ | ||
Kibo.registerEvent(this.element, 'keyup', this.upHandler); | ||
Kibo.registerEvent(window, 'unload', function unloader() { | ||
var unloadEvent = typeof window.onbeforeunload === 'object' ? 'beforeunload' : 'unload' | ||
Kibo.registerEvent(window, unloadEvent, function unloader() { | ||
Kibo.unregisterEvent(that.element, 'keydown', that.downHandler); | ||
Kibo.unregisterEvent(that.element, 'keyup', that.upHandler); | ||
Kibo.unregisterEvent(window, 'unload', unloader); | ||
Kibo.unregisterEvent(window, unloadEvent, unloader); | ||
}); | ||
@@ -163,0 +165,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
531807
8445