This commit is contained in:
Murod Khaydarov 2018-01-06 23:17:12 +03:00
commit 52ed658260
3 changed files with 7 additions and 4 deletions

View file

@ -2791,12 +2791,13 @@ var Listeners = function (_Module) {
}, {
key: "removeAll",
value: function removeAll() {
var _this2 = this;
this.allListeners.map(function (current) {
_this2.off(current.element, current.type, current.handler);
current.element.removeEventListener(current.eventType, current.handler);
});
this.allListeners = [];
}
}]);

File diff suppressed because one or more lines are too long

View file

@ -206,10 +206,12 @@ export default class Listeners extends Module {
this.allListeners.map( (current) => {
this.off(current.element, current.type, current.handler);
current.element.removeEventListener(current.eventType, current.handler);
});
this.allListeners = [];
}
}