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

update events

This commit is contained in:
Luke Pulverenti 2016-08-07 15:43:52 -04:00
parent 08c6ef7935
commit 0e0fa54547
17 changed files with 140 additions and 141 deletions

View file

@ -1,4 +1,4 @@
define(['browser', 'css!./emby-button', 'registerElement'], function (browser) {
define(['browser', 'dom', 'css!./emby-button', 'registerElement'], function (browser, dom) {
var EmbyButtonPrototype = Object.create(HTMLButtonElement.prototype);
@ -55,8 +55,12 @@
this.classList.add('paper-icon-button-light');
if (enableAnimation()) {
this.addEventListener('keydown', onKeyDown);
this.addEventListener('click', animateButton);
dom.addEventListener(this, 'keydown', onKeyDown, {
passive: true
});
dom.addEventListener(this, 'click', animateButton, {
passive: true
});
}
};