mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
DEV: Import EmberObject rather than global variable (#8256)
* DEV: Import ember/object rather than Ember.Object globally * fixed broken object proxy import * prettier on js * added @ember/object/proxy to loader * added unstaged file * Fixed objet proxy reference is loader * Linting!
This commit is contained in:

committed by
GitHub

parent
74dc37c07c
commit
c7475ee03b
@ -1,3 +1,4 @@
|
||||
import EmberObject from "@ember/object";
|
||||
import Component from "@ember/component";
|
||||
const { get, isNone, run, isEmpty, makeArray } = Ember;
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
@ -87,11 +88,11 @@ export default Component.extend(
|
||||
this.noneValue = "__none__";
|
||||
this.set(
|
||||
"headerComponentOptions",
|
||||
Ember.Object.create({ forceEscape: this.forceEscape })
|
||||
EmberObject.create({ forceEscape: this.forceEscape })
|
||||
);
|
||||
this.set(
|
||||
"rowComponentOptions",
|
||||
Ember.Object.create({
|
||||
EmberObject.create({
|
||||
forceEscape: this.forceEscape
|
||||
})
|
||||
);
|
||||
|
Reference in New Issue
Block a user