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

fix CI error

This commit is contained in:
dkanada 2019-09-25 09:53:09 +09:00
parent 0e2163b396
commit 714773fe83

View file

@ -22,12 +22,16 @@ define(['playbackManager', 'focusManager', 'appRouter', 'dom'], function (playba
var eventListenerCount = 0;
function on(scope, fn) {
if (eventListenerCount) eventListenerCount++;
if (eventListenerCount) {
eventListenerCount++;
}
dom.addEventListener(scope, 'command', fn, {});
}
function off(scope, fn) {
if (eventListenerCount) eventListenerCount--;
if (eventListenerCount) {
eventListenerCount--;
}
dom.removeEventListener(scope, 'command', fn, {});
}