DS.InvalidError

DS.InvalidError Class Defined in: addon/adapters/errors.js:58 Module: ember-data A DS.InvalidError is used by an adapter to signal the external API was unable to process a request because the content was not semantically correct or meaningful per the API. Usually this means a record failed some form of server side validation. When a promise from an adapter is rejected with a DS.InvalidError the record will transition to the invalid state and the errors will be set to the errors property on

DS.Store#flushPendingSave()

flushPendingSaveprivate Defined in addon/-private/system/store.js:1708 This method is called at the end of the run loop, and flushes any records passed into scheduleSave

Application#didBecomeReady()

didBecomeReadyprivate Defined in packages/ember-application/lib/system/application.js:700

Conditionals

Conditionals Statements like if and unless are implemented as built-in helpers. Helpers can be invoked three ways, each of which is illustrated below with conditionals. The first style of invocation is inline invocation. This looks similar to displaying a property, but helpers accept arguments. For example: <div> {{if isFast "zoooom" "putt-putt-putt"}} </div> {{if}} in this case returns "zoooom" when isFast is true and "putt-putt-putt" when isFast is false. Helpers invoked as i

Ember.cacheFor()

cacheFor (obj, key) Objectpublic Defined in packages/ember-metal/lib/computed.js:554 Returns the cached value for a property, if one exists. This can be useful for peeking at the value of a computed property that is generated lazily, without accidentally causing it to be created. Parameters: obj Object the object whose property you want to check key String the name of the property whose cached value you want to return Returns: Object the cached value

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

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

Route#findModel()

findModel (type, value) private Defined in packages/ember-routing/lib/system/route.js:1519 Parameters: type String the model type value Object the value passed to find

Test.checkWaiters()

checkWaiterspublicstatic Defined in packages/ember-testing/lib/test/waiters.js:74 Iterates through each registered test waiter, and invokes its callback. If any waiter returns false, this method will return true indicating that the waiters have not settled yet. This is generally used internally from the acceptance/integration test infrastructure.

Test#wait()

wait (value) RSVP.Promisepublic Defined in packages/ember-testing/lib/helpers.js:140 Causes the run loop to process any pending events. This is used to ensure that any async operations from other helpers (or your assertions) have been processed. This is most often used as the return value for the helper functions (see 'click', 'fillIn','visit',etc). Example: Ember.Test.registerAsyncHelper('loginUser', function(app, username, password) { visit('secured/path/here') .fillIn('#username', us