No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

event.js 520B

12345678910111213141516171819202122
  1. 'use strict';
  2. var Event = function(eventType, options) {
  3. this.type = eventType;
  4. for (var key in options)
  5. this[key] = options[key];
  6. };
  7. Event.prototype.initEvent = function(eventType, canBubble, cancelable) {
  8. this.type = eventType;
  9. this.bubbles = canBubble;
  10. this.cancelable = cancelable;
  11. };
  12. Event.prototype.stopPropagation = function() {};
  13. Event.prototype.preventDefault = function() {};
  14. Event.CAPTURING_PHASE = 1;
  15. Event.AT_TARGET = 2;
  16. Event.BUBBLING_PHASE = 3;
  17. module.exports = Event;