Mutation callback (#444)

* modification observer initials

* add debouncer to callback execution

* change feature name

* update

* code improvements

* tslint fixes

* use debouncer from utils

* add types

* upgrade

* fix

* update
This commit is contained in:
Murod Khaydarov 2018-09-05 00:34:11 +03:00 committed by GitHub
commit 7acf321454
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 176 additions and 38 deletions

View file

@ -66,6 +66,7 @@ export default class CodexEditor {
const destroy = () => {
editor.moduleInstances.Listeners.removeAll();
editor.moduleInstances.UI.destroy();
editor.moduleInstances.ModificationsObserver.destroy();
editor = null;
for (const field in this) {