mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 23:55:49 +01:00
update
This commit is contained in:
parent
87c94d7372
commit
52ed658260
3 changed files with 7 additions and 4 deletions
|
|
@ -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
|
|
@ -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 = [];
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue