Map#clear()

clearprivate Defined in packages/ember-metal/lib/map.js:392

Map.create()

createprivatestatic Defined in packages/ember-metal/lib/map.js:253

Setting Up Tests

Setting Up Tests To demonstrate the basic setup and processing of an Ember application, this section will walk through building an Ember application for a property rental site called Super Rentals. It will start with a homepage, an about page and a contact page. Here's a look at the desired application before we get started. Let's think through what we want to do on the home page of our Super Rentals application. We want our application to: List available rentals. Link to information about t

Ember.deprecate()

deprecate (message, test, options) public Defined in packages/ember-debug/lib/deprecate.js:97 Display a deprecation warning with the provided message and a stack trace (Chrome and Firefox only). In a production build, this method is defined as an empty function (NOP). Uses of this method in Ember itself are stripped from the ember.prod.js build. Parameters: message String A description of the deprecation. test Boolean A boolean. If falsy, the deprecation will be displayed. option

DS.Snapshot#serialize()

serialize (options) Object Defined in addon/-private/system/snapshot.js:350 Parameters: options Object Returns: Object an object whose values are primitive JSON values only

DS.Snapshot#attr()

attr (keyName) Object Defined in addon/-private/system/snapshot.js:94 Returns the value of an attribute. Example // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' }); postSnapshot.attr('author'); // => 'Tomster' postSnapshot.attr('title'); // => 'Ember.js rocks' Note: Values are loaded eagerly and cached when the snapshot is created. Parameters: keyName String Returns: Object The attribute value or undefined

DS.JSONSerializer#normalizeFindHasManyResponse()

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

DS.Store#serialize()

serialize (record, options) private Defined in addon/-private/system/store.js:250 Returns a JSON representation of the record using a custom type-specific serializer, if one exists. The available options are: includeId: true if the record's ID should be included in the JSON representation Parameters: record DS.Model the record to serialize options Object an options hash

Evented#one()

one (name, target, method) public Defined in packages/ember-runtime/lib/mixins/evented.js:78 Subscribes a function to a named event and then cancels the subscription after the first time the event is triggered. It is good to use one when you only care about the first time an event has taken place. This function takes an optional 2nd argument that will become the "this" value for the callback. If this argument is passed then the 3rd argument becomes the function. Parameters: name String

DS.Store#filter()

filter (modelName, query, filter) DS.PromiseArraydeprecatedprivate Defined in addon/-private/system/store.js:1550 Takes a type and filter function, and returns a live RecordArray that remains up to date as new records are loaded into the store or created locally. The filter function takes a materialized record, and returns true if the record should be included in the filter and false if it should not. Example store.filter('post', function(post) { return post.get('unread'); }); The filter