source: trip-planner-front/node_modules/faye-websocket/lib/faye/websocket/api/event.js@ 84d0fbb

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

initial commit

  • Property mode set to 100644
File size: 520 bytes
Line 
1'use strict';
2
3var Event = function(eventType, options) {
4 this.type = eventType;
5 for (var key in options)
6 this[key] = options[key];
7};
8
9Event.prototype.initEvent = function(eventType, canBubble, cancelable) {
10 this.type = eventType;
11 this.bubbles = canBubble;
12 this.cancelable = cancelable;
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.