FIX: prevents exception when clicking component title above ace editor (#9309)

FIX: prevents exception when clicking component title above ace editor (#9309)

diff --git a/app/assets/javascripts/admin/components/ace-editor.js b/app/assets/javascripts/admin/components/ace-editor.js
index 4fc881d..123193c 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

GitHub sha: f8cb46c0

This commit appears in #9309 which was approved by eviltrout. It was merged by jjaffeux.