MutableArray#shiftObject()

shiftObjectpublic Defined in packages/ember-runtime/lib/mixins/mutable_array.js:234 Shift an object from start of array or nil if none are left. Works just like shift() but it is KVO-compliant. let colors = ['red', 'green', 'blue']; colors.shiftObject(); // 'red' console.log(colors); // ['green', 'blue'] Returns: object

DS.Model#hasMany()

hasMany (name) HasManyReference Defined in addon/-private/system/model/model.js:883 Available since 2.5.0 Get the reference for the specified hasMany relationship. Example // models/blog.js export default DS.Model.extend({ comments: DS.hasMany({ async: true }) }); var blog = store.push({ type: 'blog', id: 1, relationships: { comments: { data: [ { type: 'comment', id: 1 }, { type: 'comment', id: 2 } ] } } }); var commentsRef = blog.hasMany('comm

RSVP.hash()

hash (object, label) Promisestatic Defined in bower_components/rsvp/lib/rsvp/hash.js:4 RSVP.hash is similar to RSVP.all, but takes an object instead of an array for its promises argument. Returns a promise that is fulfilled when all the given promises have been fulfilled, or rejected if any of them become rejected. The returned promise is fulfilled with a hash that has the same key names as the promises object argument. If any of the values in the object are not promises, they will simply b

DS.Store#recordWasError()

recordWasError (internalModel, error) private Defined in addon/-private/system/store.js:1785 This method is called once the promise returned by an adapter's createRecord, updateRecord or deleteRecord is rejected (with anything other than a DS.InvalidError). Parameters: internalModel InternalModel error Error

DataAdapter#getFilters()

getFiltersArraypublic Defined in packages/ember-extension-support/lib/data_adapter.js:115 Specifies how records can be filtered. Records returned will need to have a filterValues property with a key for every name in the returned array. Returns: Array List of objects defining filters. The object should have a `name` and `desc` property.

Observable#hasObserverFor()

hasObserverFor (key) Booleanprivate Defined in packages/ember-runtime/lib/mixins/observable.js:400 Returns true if the object currently has observers registered for a particular key. You can use this method to potentially defer performing an expensive action until someone begins observing a particular property on the object. Parameters: key String Key to check Returns: Boolean

Evented#off()

off (name, target, method) public Defined in packages/ember-runtime/lib/mixins/evented.js:127 Cancels subscription for given name, target, and method. Parameters: name String The name of the event target Object The target of the subscription method Function The function of the subscription Returns: this

Test#injectTestHelpers()

injectTestHelperspublic Defined in packages/ember-testing/lib/ext/application.js:96 This injects the test helpers into the helperContainer object. If an object is provided it will be used as the helperContainer. If helperContainer is not set it will default to window. If a function of the same name has already been defined it will be cached (so that it can be reset if the helper is removed with unregisterHelper or removeTestHelpers). Any callbacks registered with onInjectHelpers will be cal

Ember.isEmpty()

isEmpty (obj) Booleanpublic Defined in packages/ember-metal/lib/is_empty.js:4 Verifies that a value is null or an empty string, empty array, or empty function. Constrains the rules on Ember.isNone by returning true for empty string and empty arrays. Ember.isEmpty(); // true Ember.isEmpty(null); // true Ember.isEmpty(undefined); // true Ember.isEmpty(''); // true Ember.isEmpty([]); // true Ember.isEmpty({}); // false Embe

Ember.isBlank()

isBlank (obj) Booleanpublic Defined in packages/ember-metal/lib/is_blank.js:3 Available since 1.5.0 A value is blank if it is empty or a whitespace string. Ember.isBlank(); // true Ember.isBlank(null); // true Ember.isBlank(undefined); // true Ember.isBlank(''); // true Ember.isBlank([]); // true Ember.isBlank('\n\t'); // true Ember.isBlank(' '); // true Ember.isBlank({}); // false Ember.isBlank('\n\