FIX: prevents exception when clicking component title above ace editor (#9309)
This commit is contained in:
parent
acdbcabd0e
commit
f8cb46c0e1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue