source: trip-planner-front/node_modules/sockjs-client/lib/event/event.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 477 bytes
Line 
1'use strict';
2
3function Event(eventType) {
4 this.type = eventType;
5}
6
7Event.prototype.initEvent = function(eventType, canBubble, cancelable) {
8 this.type = eventType;
9 this.bubbles = canBubble;
10 this.cancelable = cancelable;
11 this.timeStamp = +new Date();
12 return this;
13};
14
15Event.prototype.stopPropagation = function() {};
16Event.prototype.preventDefault = function() {};
17
18Event.CAPTURING_PHASE = 1;
19Event.AT_TARGET = 2;
20Event.BUBBLING_PHASE = 3;
21
22module.exports = Event;
Note: See TracBrowser for help on using the repository browser.