-
Notifications
You must be signed in to change notification settings - Fork 1
/
Event.js
33 lines (33 loc) · 1014 Bytes
/
Event.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
define(["require", "exports"], function (require, exports) {
var Event = (function () {
function Event(kwArgs) {
this.timestamp = +new Date();
if (kwArgs) {
for (var k in kwArgs) {
if (k === 'constructor') {
continue;
}
this[k] = kwArgs[k];
}
}
}
Event.prototype.preventDefault = function () {
if (this.cancelable) {
this.defaultPrevented = true;
}
};
Event.prototype.stopImmediatePropagation = function () {
if (this.bubbles) {
this.immediatePropagationStopped = true;
}
};
Event.prototype.stopPropagation = function () {
if (this.bubbles) {
this.propagationStopped = true;
}
};
return Event;
})();
return Event;
});
//# sourceMappingURL=_debug/Event.js.map