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

This commit is contained in:
Joffrey JAFFEUX 2020-03-30 18:55:15 +02:00 committed by GitHub
parent acdbcabd0e
commit f8cb46c0e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -57,7 +57,7 @@ export default Component.extend({
} }
if (this.appEvents) { if (this.appEvents) {
// xxx: don't run during qunit tests // 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"); $(window).off("ace:resize");
@ -97,9 +97,7 @@ export default Component.extend({
$(window) $(window)
.off("ace:resize") .off("ace:resize")
.on("ace:resize", () => { .on("ace:resize", () => this.appEvents.trigger("ace:resize"));
this.appEvents.trigger("ace:resize");
});
if (this.appEvents) { if (this.appEvents) {
// xxx: don't run during qunit tests // xxx: don't run during qunit tests