DEV: Fix the Function.prototype.on deprecation (#8205)

https://deprecations.emberjs.com/v3.x/#toc_function-prototype-extensions-on
This commit is contained in:
Jarek Radosz
2019-10-18 01:49:41 +02:00
committed by GitHub
parent f6ea986aec
commit 7de3e7b322
10 changed files with 30 additions and 30 deletions

View File

@ -48,7 +48,7 @@ export default Ember.Component.extend({
}
},
_destroyEditor: function() {
_destroyEditor: Ember.on("willDestroyElement", function() {
if (this._editor) {
this._editor.destroy();
this._editor = null;
@ -59,7 +59,7 @@ export default Ember.Component.extend({
}
$(window).off("ace:resize");
}.on("willDestroyElement"),
}),
resize() {
if (this._editor) {