1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/dashboard-ui/bower_components/dragula.js/test/lib/events.js
2015-10-15 01:48:03 -04:00

16 lines
297 B
JavaScript

'use strict';
function raise (el, type, options) {
var o = options || {};
var e = document.createEvent('Event');
e.initEvent(type, true, true);
Object.keys(o).forEach(apply);
el.dispatchEvent(e);
function apply (key) {
e[key] = o[key];
}
}
module.exports = {
raise: raise
};