DEV: Add more `@ember` imports (#9012)

This commit is contained in:
Jarek Radosz 2020-02-21 14:27:04 +01:00 committed by GitHub
parent cb69e89d7c
commit c607870f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 3 deletions

View File

@ -10,16 +10,31 @@ var define, requirejs;
if (typeof Ember !== "undefined") {
EMBER_MODULES = {
jquery: { default: $ },
"@ember/component": { default: Ember.Component },
"@ember/array": {
default: Ember.Array,
A: Ember.A
},
"@ember/array/proxy": {
default: Ember.ArrayProxy
},
"@ember/component": {
default: Ember.Component,
TextArea: Ember.TextArea,
TextField: Ember.TextField
},
"@ember/controller": {
default: Ember.Controller,
inject: Ember.inject.controller
},
"@ember/debug": {
warn: Ember.warn
},
"@ember/object": {
action: Ember._action,
default: Ember.Object,
get: Ember.get,
getProperties: Ember.getProperties,
guidFor: Ember.guidFor,
set: Ember.set,
setProperties: Ember.setProperties,
computed: Ember.computed,
@ -61,8 +76,12 @@ var define, requirejs;
},
"@ember/object/mixin": { default: Ember.Mixin },
"@ember/object/proxy": { default: Ember.ObjectProxy },
"@ember/object/evented": { on: Ember.on },
"@ember/object/evented": {
default: Ember.Evented,
on: Ember.on
},
"@ember/routing/route": { default: Ember.Route },
"@ember/routing/router": { default: Ember.Router },
"@ember/runloop": {
bind: Ember.run.bind,
cancel: Ember.run.cancel,
@ -81,6 +100,7 @@ var define, requirejs;
},
"@ember/utils": {
isPresent: Ember.isPresent,
isBlank: Ember.isBlank,
isEmpty: Ember.isEmpty,
isNone: Ember.isNone
},
@ -101,6 +121,7 @@ var define, requirejs;
htmlSafe: Ember.String.htmlSafe
},
"@ember/application": {
default: Ember.Application,
setOwner: Ember.setOwner,
getOwner: Ember.getOwner
},
@ -110,7 +131,6 @@ var define, requirejs;
"@ember/error": {
default: Ember.error
},
"@ember/object/internals": {
guidFor: Ember.guidFor
}