blob: f321b3378d90bf03c5cf7fe8ef426b7f8387985b [file] [edit]
"use strict";
function Event(type, bubbles, cancelable, target) {
this.initEvent(type, bubbles, cancelable, target);
}
Event.prototype = {
initEvent: function(type, bubbles, cancelable, target) {
this.type = type;
this.bubbles = bubbles;
this.cancelable = cancelable;
this.target = target;
this.currentTarget = target;
},
// eslint-disable-next-line no-empty-function
stopPropagation: function() {},
preventDefault: function() {
this.defaultPrevented = true;
}
};
module.exports = Event;