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:
parent
0e2163b396
commit
714773fe83
1 changed files with 6 additions and 2 deletions
|
@ -22,12 +22,16 @@ define(['playbackManager', 'focusManager', 'appRouter', 'dom'], function (playba
|
||||||
|
|
||||||
var eventListenerCount = 0;
|
var eventListenerCount = 0;
|
||||||
function on(scope, fn) {
|
function on(scope, fn) {
|
||||||
if (eventListenerCount) eventListenerCount++;
|
if (eventListenerCount) {
|
||||||
|
eventListenerCount++;
|
||||||
|
}
|
||||||
dom.addEventListener(scope, 'command', fn, {});
|
dom.addEventListener(scope, 'command', fn, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
function off(scope, fn) {
|
function off(scope, fn) {
|
||||||
if (eventListenerCount) eventListenerCount--;
|
if (eventListenerCount) {
|
||||||
|
eventListenerCount--;
|
||||||
|
}
|
||||||
dom.removeEventListener(scope, 'command', fn, {});
|
dom.removeEventListener(scope, 'command', fn, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue