|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
520 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var Event = function(eventType, options) {
|
|---|
| 4 | this.type = eventType;
|
|---|
| 5 | for (var key in options)
|
|---|
| 6 | this[key] = options[key];
|
|---|
| 7 | };
|
|---|
| 8 |
|
|---|
| 9 | Event.prototype.initEvent = function(eventType, canBubble, cancelable) {
|
|---|
| 10 | this.type = eventType;
|
|---|
| 11 | this.bubbles = canBubble;
|
|---|
| 12 | this.cancelable = cancelable;
|
|---|
| 13 | };
|
|---|
| 14 |
|
|---|
| 15 | Event.prototype.stopPropagation = function() {};
|
|---|
| 16 | Event.prototype.preventDefault = function() {};
|
|---|
| 17 |
|
|---|
| 18 | Event.CAPTURING_PHASE = 1;
|
|---|
| 19 | Event.AT_TARGET = 2;
|
|---|
| 20 | Event.BUBBLING_PHASE = 3;
|
|---|
| 21 |
|
|---|
| 22 | module.exports = Event;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.