|
|
|
@ -117,7 +117,7 @@
|
|
|
|
|
this.handlers[eventName] = [];
|
|
|
|
|
}
|
|
|
|
|
this.handlers[eventName].push(handler);
|
|
|
|
|
this.element.addEventListener(eventName, handler, false);
|
|
|
|
|
this.element.addEventListener(eventName, handler, {useCapture : false, passive : false});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
EventElement.prototype.unbind = function unbind (eventName, target) {
|
|
|
|
@ -127,7 +127,7 @@
|
|
|
|
|
if (target && handler !== target) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
this$1.element.removeEventListener(eventName, handler, false);
|
|
|
|
|
this$1.element.removeEventListener(eventName, handler, {useCapture : false});
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|