1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 14:19:43 +02:00

dispose of interact object

This commit is contained in:
Harvey Kandola 2017-12-14 14:07:40 +00:00
parent 3329942d8a
commit 215f644d11

View file

@ -61,6 +61,11 @@ export default Component.extend(NotifierMixin, {
this.eventBus.unsubscribe('documentPageAdded'); this.eventBus.unsubscribe('documentPageAdded');
this.eventBus.unsubscribe('resized'); this.eventBus.unsubscribe('resized');
let t = '#doc-toc';
if (interact.isSet(t)) {
interact(t).unset();
}
}, },
onDocumentPageAdded(pageId) { onDocumentPageAdded(pageId) {