mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +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 DiscourseRoute from "discourse/routes/discourse";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import showModal from "discourse/lib/show-modal";
|
||||
@ -42,7 +43,7 @@ export default DiscourseRoute.extend({
|
||||
} else {
|
||||
this.controllerFor("adminBackupsLogs")
|
||||
.get("logs")
|
||||
.pushObject(Ember.Object.create(log));
|
||||
.pushObject(EmberObject.create(log));
|
||||
}
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user