jellyfin-web/dashboard-ui/apiclient/events.js
2015-11-28 16:26:31 -05:00

20 lines
434 B
JavaScript

(function (globalScope) {
globalScope.Events = {
on: function (obj, eventName, selector, fn) {
jQuery(obj).on(eventName, selector, fn);
},
off: function (obj, eventName, selector, fn) {
jQuery(obj).off(eventName, selector, fn);
},
trigger: function (obj, eventName, params) {
jQuery(obj).trigger(eventName, params);
}
};
})(window);