DEV: Import Ember.on from @ember/object/evented (#8268)

* DEV: Import `Ember.on` from @ember/object/evented

* Dont import "on" outsie of the js or admin app

* Fixed error when resolving merge conflicts
This commit is contained in:
Mark VanLandingham
2019-10-30 17:05:27 -05:00
committed by GitHub
parent d8f7f363cd
commit 02a886ce13
11 changed files with 28 additions and 15 deletions

View File

@ -1,6 +1,7 @@
import Component from "@ember/component";
import loadScript from "discourse/lib/load-script";
import { observes } from "ember-addons/ember-computed-decorators";
import { on } from "@ember/object/evented";
export default Component.extend({
mode: "css",
@ -49,7 +50,7 @@ export default Component.extend({
}
},
_destroyEditor: Ember.on("willDestroyElement", function() {
_destroyEditor: on("willDestroyElement", function() {
if (this._editor) {
this._editor.destroy();
this._editor = null;