From 184ccf449013d96e2897f95083efe514e187694a Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 27 Oct 2021 16:29:36 +0200 Subject: [PATCH] DEV: nullify cachedCookFunction to prevent retains (#14737) --- app/assets/javascripts/discourse/app/components/d-editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/app/components/d-editor.js b/app/assets/javascripts/discourse/app/components/d-editor.js index 312c0719a18..cc342043ee9 100644 --- a/app/assets/javascripts/discourse/app/components/d-editor.js +++ b/app/assets/javascripts/discourse/app/components/d-editor.js @@ -341,6 +341,8 @@ export default Component.extend(TextareaTextManipulation, { if (isTesting()) { this.element.removeEventListener("paste", this.paste); } + + this._cachedCookFunction = null; }, @discourseComputed()