DS.RecordArray#save()

saveDS.PromiseArray Defined in addon/-private/system/record-arrays/record-array.js:170 Saves all of the records in the RecordArray. Example var messages = store.peekAll('message'); messages.forEach(function(message) { message.set('hasBeenSeen', true); }); messages.save(); Returns: DS.PromiseArray promise

DS.Store#reloadRecord()

reloadRecord (internalModel) Promiseprivate Defined in addon/-private/system/store.js:942 This method is called by the record's reload method. This method calls the adapter's find method, which returns a promise. When that promise resolves, reloadRecord will resolve the promise returned by the record's reload. Parameters: internalModel DS.Model Returns: Promise promise

Ember.tryInvoke()

tryInvoke (obj, methodName, args) *public Defined in packages/ember-metal/lib/utils.js:338 Checks to see if the methodName exists on the obj, and if it does, invokes it with the arguments passed. let d = new Date('03/15/2013'); Ember.tryInvoke(d, 'getTime'); // 1363320000000 Ember.tryInvoke(d, 'setFullYear', [2014]); // 1394856000000 Ember.tryInvoke(d, 'noSuchMethod', [2014]); // undefined Parameters: obj Object The object to check for the method methodName String T

NoneLocation#handleURL()

handleURL (callback) private Defined in packages/ember-routing/lib/location/none_location.js:85 Sets the path and calls the updateURL callback. Parameters: callback Function

Route#controllerFor()

controllerFor (name) Ember.Controllerpublic Defined in packages/ember-routing/lib/system/route.js:1672 Returns the controller for a particular route or name. The controller instance must already have been created, either through entering the associated route or using generateController. App.PostRoute = Ember.Route.extend({ setupController: function(controller, post) { this._super(controller, post); this.controllerFor('posts').set('currentPost', post); } }); Parameters: name

TextSupport#templateName

templateNameStringprivate Defined in packages/ember-views/lib/mixins/template_support.js:22 The name of the template to lookup if no template is provided. By default Ember.View will lookup a template with this name in Ember.TEMPLATES (a shared global object). Default: null

Ember.onLoad()

onLoad (name, callback) private Defined in packages/ember-runtime/lib/system/lazy_load.js:14 Detects when a specific package of Ember (e.g. 'Ember.Application') has fully loaded and is available for extension. The provided callback will be called with the name passed resolved from a string into the object: Ember.onLoad('Ember.Application' function(hbars) { hbars.registerHelper(...); }); Parameters: name String name of hook callback Function callback to be called

Observable#decrementProperty()

decrementProperty (keyName, decrement) Numberpublic Defined in packages/ember-runtime/lib/mixins/observable.js:453 Set the value of a property to the current value minus some amount. player.decrementProperty('lives'); orc.decrementProperty('health', 5); Parameters: keyName String The name of the property to decrement decrement Number The amount to decrement by. Defaults to 1 Returns: Number The new property value

Ember.run.later()

later (target, method, args*, wait) *public Defined in packages/ember-metal/lib/run_loop.js:311 Invokes the passed target/method and optional arguments after a specified period of time. The last parameter of this method must always be a number of milliseconds. You should use this method whenever you need to run some action after a period of time instead of using setTimeout(). This method will ensure that items that expire during the same script execution cycle all execute together, which is

DS.JSONSerializer#normalizeQueryRecordResponse()

normalizeQueryRecordResponse (store, primaryModelClass, payload, id, requestType) Object Defined in addon/serializers/json.js:276 Available since 1.13.0 Parameters: store DS.Store primaryModelClass DS.Model payload Object id String|Number requestType String Returns: Object JSON-API Document