mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix events
This commit is contained in:
parent
d2d9f83bcd
commit
776f430ef7
3 changed files with 12 additions and 37 deletions
|
@ -113,6 +113,15 @@
|
|||
this._on(this.document, { "focusin": "_handleDocumentFocusIn" });
|
||||
},
|
||||
|
||||
_delay: function (handler, delay) {
|
||||
function handlerProxy() {
|
||||
return (typeof handler === "string" ? instance[handler] : handler)
|
||||
.apply(instance, arguments);
|
||||
}
|
||||
var instance = this;
|
||||
return setTimeout(handlerProxy, delay || 0);
|
||||
},
|
||||
|
||||
_enhance: function (theElement, myId) {
|
||||
var currentOptions = this.options,
|
||||
wrapperClass = currentOptions.wrapperClass,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue