properly unregister event when binding is destroyed
This commit is contained in:
parent
384a4b72b0
commit
dc22a79ac4
@ -31,7 +31,7 @@ export default class QuillBinding extends Binding {
|
|||||||
destroy () {
|
destroy () {
|
||||||
// Remove everything that is handled by this class
|
// Remove everything that is handled by this class
|
||||||
this.type.unobserve(this._typeObserver)
|
this.type.unobserve(this._typeObserver)
|
||||||
this.target.unobserve(this._quillObserver)
|
this.target.off('text-change', this._quillObserver)
|
||||||
super.destroy()
|
super.destroy()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user