mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
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:

committed by
GitHub

parent
d8f7f363cd
commit
02a886ce13
@ -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;
|
||||
|
Reference in New Issue
Block a user