properly unregister event when binding is destroyed

This commit is contained in:
Kevin Jahns 2018-02-27 03:52:40 +01:00
parent 384a4b72b0
commit dc22a79ac4

View File

@ -31,7 +31,7 @@ export default class QuillBinding extends Binding {
destroy () {
// Remove everything that is handled by this class
this.type.unobserve(this._typeObserver)
this.target.unobserve(this._quillObserver)
this.target.off('text-change', this._quillObserver)
super.destroy()
}
}