A platform for community discussion. Free, open, simple.
FIX: prevents exception when clicking component title above ace editor (#9309)
Joffrey JAFFEUXf8cb46c0e188
diff --git a/app/assets/javascripts/admin/components/ace-editor.js b/app/assets/javascripts/admin/components/ace-editor.jsindex 4fc881dae4f..123193c0c0b 100644--- a/app/assets/javascripts/admin/components/ace-editor.js+++ b/app/assets/javascripts/admin/components/ace-editor.js@@ -57,7 +57,7 @@ export default Component.extend({}if (this.appEvents) {// xxx: don't run during qunit tests- this.appEvents.off("ace:resize", this, this.resize);+ this.appEvents.off("ace:resize", this, "resize");}$(window).off("ace:resize");@@ -97,9 +97,7 @@ export default Component.extend({$(window).off("ace:resize")- .on("ace:resize", () => {- this.appEvents.trigger("ace:resize");- });+ .on("ace:resize", () => this.appEvents.trigger("ace:resize"));if (this.appEvents) {// xxx: don't run during qunit tests