From dc22a79ac4f914794c628d0cfa0bd2b6e65bf21a Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Tue, 27 Feb 2018 03:52:40 +0100 Subject: [PATCH] properly unregister event when binding is destroyed --- src/Binding/QuillBinding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Binding/QuillBinding.js b/src/Binding/QuillBinding.js index 8920f20f..74bb21bc 100644 --- a/src/Binding/QuillBinding.js +++ b/src/Binding/QuillBinding.js @@ -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() } }