HashLocation#willDestroy()

willDestroyprivate Inherited from Ember.CoreObject but overwritten in packages/ember-routing/lib/location/hash_location.js:138 Cleans up the HashLocation event listener.

RSVP.map()

map (promises, mapFn, label) Promisestatic Defined in bower_components/rsvp/lib/rsvp/map.js:6 RSVP.map is similar to JavaScript's native map method, except that it waits for all promises to become fulfilled before running the mapFn on each item in given to promises. RSVP.map returns a promise that will become fulfilled with the result of running mapFn on the values the promises become fulfilled with. For example: var promise1 = RSVP.resolve(1); var promise2 = RSVP.resolve(2); var promis

Debugging Promises

Debugging Promises The Inspector provides a way to look at all Promises created in your application. Click on the Promises menu to start inspecting them. You can see a hierarchical list of Promises with labels describing each Promise, its state, its settled value, and the time it took to settle. Promise States and Filtering Promises have different colors based on their state. You can filter by clicking on the following pills: Rejected, Pending, Fulfilled. You can also search for Promises

DS.JSONSerializer#normalizeFindBelongsToResponse()

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

Ember.wrap()

wrap (func, superFunc) Functionprivate Defined in packages/ember-metal/lib/utils.js:276 Wraps the passed function so that this._super will point to the superFunc when the function is invoked. This is the primitive we use to implement calls to super. Parameters: func Function The function to call superFunc Function The super function. Returns: Function wrapped function.

LinkComponent#loadingClass

loadingClassStringprivate Defined in packages/ember-htmlbars/lib/components/link-to.js:412 The CSS class to apply to LinkComponent's element when its loading property is true. Default: loading

Observable#propertyDidChange()

propertyDidChange (keyName) Ember.Observableprivate Defined in packages/ember-runtime/lib/mixins/observable.js:294 Notify the observer system that a property has just changed. Sometimes you need to change a value directly or indirectly without actually calling get() or set() on it. In this case, you can use this method and propertyWillChange() instead. Calling these two methods together will notify all observers that the property has potentially changed value. Note that you must always call

Ember.isEqual()

isEqual (a, b) Booleanpublic Defined in packages/ember-runtime/lib/is-equal.js:1 Compares two objects, returning true if they are equal. Ember.isEqual('hello', 'hello'); // true Ember.isEqual(1, 2); // false isEqual is a more specific comparison than a triple equal comparison. It will call the isEqual instance method on the objects being compared, allowing finer control over when objects should be considered equal to each other. let Person =

Route#paramsFor()

paramsFor (name) public Defined in packages/ember-routing/lib/system/route.js:347 Retrieves parameters, for current route using the state.params variable and getQueryParamsFor, using the supplied routeName. Parameters: name String

DS.Store#recordIsLoaded()

recordIsLoaded (modelName, id) Boolean Defined in addon/-private/system/store.js:1637 This method returns if a certain record is already loaded in the store. Use this function to know beforehand if a findRecord() will result in a request or that it will be a cache hit. Example store.recordIsLoaded('post', 1); // false store.findRecord('post', 1).then(function() { store.recordIsLoaded('post', 1); // true }); Parameters: modelName String id String Returns: Boolean