1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

continue jquery removal

This commit is contained in:
Luke Pulverenti 2016-06-24 11:12:13 -04:00
parent 443878a501
commit ba14c457e8
7 changed files with 216 additions and 152 deletions

View file

@ -396,15 +396,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}
},
_listenKeyEventListeners: function() {
Object.keys(this._keyBindings).forEach(function(eventName) {
var keyBindings = this._keyBindings[eventName];
var boundKeyHandler = this._onKeyBindingEvent.bind(this, keyBindings);
_listenKeyEventListeners: function () {
this._boundKeyHandlers.push([this.keyEventTarget, eventName, boundKeyHandler]);
if (this.keyEventTarget) {
Object.keys(this._keyBindings).forEach(function (eventName) {
var keyBindings = this._keyBindings[eventName];
var boundKeyHandler = this._onKeyBindingEvent.bind(this, keyBindings);
this.keyEventTarget.addEventListener(eventName, boundKeyHandler);
}, this);
this._boundKeyHandlers.push([this.keyEventTarget, eventName, boundKeyHandler]);
this.keyEventTarget.addEventListener(eventName, boundKeyHandler);
}, this);
}
},
_unlistenKeyEventListeners: function() {