mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-08 20:58:24 +08:00
R=jacktfranklin@chromium.org DISABLE_THIRD_PARTY_CHECK=Adding sinon to deps Change-Id: If47962332a4d9a4b4f0edbe637bca4f9894545ba Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2562704 Auto-Submit: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
25 lines
569 B
JavaScript
25 lines
569 B
JavaScript
"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;
|