mirror of
https://github.com/yjs/yjs.git
synced 2025-12-29 00:25:01 +01:00
properly unregister event when binding is destroyed
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user