DataAdapter#observeModelType()

observeModelType (modelName, typesUpdated) Functionprivate Defined in packages/ember-extension-support/lib/data_adapter.js:278 Adds observers to a model type class. Parameters: modelName String The model type name. typesUpdated Function Called when a type is modified. Returns: Function The function to call to remove observers.

Ember.changeProperties()

changeProperties (callback, binding) private Defined in packages/ember-metal/lib/property_events.js:226 Make a series of property changes together in an exception-safe way. Ember.changeProperties(function() { obj1.set('foo', mayBlowUpWhenSet); obj2.set('bar', baz); }); Parameters: callback Function binding []

Ember.generateGuid()

generateGuid (obj, prefix) Stringprivate Defined in packages/ember-metal/lib/utils.js:129 Generates a new guid, optionally saving the guid to the object that you pass in. You will rarely need to use this method. Instead you should call Ember.guidFor(obj), which return an existing guid if available. Parameters: obj [Object] Object the guid will be used for. If passed in, the guid will be saved on the object and reused whenever you pass the same object again. If no object is passed, just

Ember.merge()

merge (original, updates) Objectpublic Defined in packages/ember-metal/lib/merge.js:1 Merge the contents of two objects together into the first object. Ember.merge({ first: 'Tom' }, { last: 'Dale' }); // { first: 'Tom', last: 'Dale' } var a = { first: 'Yehuda' }; var b = { last: 'Katz' }; Ember.merge(a, b); // a == { first: 'Yehuda', last: 'Katz' }, b == { last: 'Katz' } Parameters: original Object The object to merge into updates Object The object to copy properties from Retur

Test#promise()

promise (resolver, label) public Defined in packages/ember-testing/lib/test/promise.js:21 This returns a thenable tailored for testing. It catches failed onSuccess callbacks and invokes the Ember.Test.adapter.exception callback in the last chained then. This method should be returned by async helpers such as wait. Parameters: resolver Function The function used to resolve the promise. label String An optional string for identifying the promise.

DefaultResolver#resolveTemplate()

resolveTemplate (parsedName) protected Defined in packages/ember-application/lib/system/resolver.js:301 Look up the template in Ember.TEMPLATES Parameters: parsedName Object a parseName object with the parsed fullName lookup string

Templates.helpers.action()

actionpublic Defined in packages/ember-htmlbars/lib/keywords/action.js:9 The {{action}} helper provides a way to pass triggers for behavior (usually just a function) between components, and into components from controllers. Passing functions with the action helper There are three contexts an action helper can be used in. The first two contexts to discuss are attribute context, and Handlebars value context. {{! An example of attribute context }} <div onclick={{action "save"}}></div&

Ember.removeBeforeObserver()

removeBeforeObserver (obj, path, target, method) deprecatedprivate Defined in packages/ember-metal/lib/observer.js:93 Parameters: obj path String target Object|Function method [Function|String]

DS.Store#queryRecord()

queryRecord (modelName, query) Promise Defined in addon/-private/system/store.js:1151 Available since 1.13.0 This method makes a request for one record, where the id is not known beforehand (if the id is known, use findRecord instead). This method can be used when it is certain that the server will return a single object for the primary data. Let's assume our API provides an endpoint for the currently logged in user via: // GET /api/current_user { user: { id: 1234, username: 'admi

DS.Adapter

DS.Adapter Class Extends: Ember.Object Defined in: addon/adapter.js:8 Module: ember-data An adapter is an object that receives requests from a store and translates them into the appropriate action to take against your persistence layer. The persistence layer is usually an HTTP API, but may be anything, such as the browser's local storage. Typically the adapter is not invoked directly instead its functionality is accessed through the store. Creating an Adapter Create a new subclass of DS.Ad