mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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,8 +1,9 @@
|
||||
import EmberObject from "@ember/object";
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
import ValidState from "wizard/mixins/valid-state";
|
||||
import { ajax } from "wizard/lib/ajax";
|
||||
|
||||
export default Ember.Object.extend(ValidState, {
|
||||
export default EmberObject.extend(ValidState, {
|
||||
id: null,
|
||||
|
||||
@computed("index")
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import EmberObject from "@ember/object";
|
||||
import ValidState from "wizard/mixins/valid-state";
|
||||
|
||||
export default Ember.Object.extend(ValidState, {
|
||||
export default EmberObject.extend(ValidState, {
|
||||
id: null,
|
||||
type: null,
|
||||
value: null,
|
||||
|
||||
@@ -2,8 +2,9 @@ import Step from "wizard/models/step";
|
||||
import WizardField from "wizard/models/wizard-field";
|
||||
import { ajax } from "wizard/lib/ajax";
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
import EmberObject from "@ember/object";
|
||||
|
||||
const Wizard = Ember.Object.extend({
|
||||
const Wizard = EmberObject.extend({
|
||||
@computed("steps.length")
|
||||
totalSteps: length => length,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user