mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
23 lines
588 B
JavaScript
23 lines
588 B
JavaScript
(function (globalScope) {
|
|
|
|
globalScope.Events = {
|
|
|
|
on: function (obj, eventName, selector, fn) {
|
|
|
|
Logger.log('event.on ' + eventName);
|
|
jQuery(obj).on(eventName, selector, fn);
|
|
},
|
|
|
|
off: function (obj, eventName, selector, fn) {
|
|
|
|
Logger.log('event.off ' + eventName);
|
|
jQuery(obj).off(eventName, selector, fn);
|
|
},
|
|
|
|
trigger: function (obj, eventName, params) {
|
|
Logger.log('event.trigger ' + eventName);
|
|
jQuery(obj).trigger(eventName, params);
|
|
}
|
|
};
|
|
|
|
})(window);
|