ember

ember Module

Observable#cacheFor()

cacheFor (keyName) Objectpublic Defined in packages/ember-runtime/lib/mixins/observable.js:490 Returns the cached value of a computed property, if it exists. This allows you to inspect the value of a computed property without accidentally invoking it if it is intended to be generated lazily. Parameters: keyName String Returns: Object The cached value of the computed property, if any

Debug.registerWarnHandler()

registerWarnHandler (handler) publicstatic Defined in packages/ember-debug/lib/index.js:260 Available since 2.1.0 Allows for runtime registration of handler functions that override the default warning behavior. Warnings are invoked by calls made to Ember.warn. The following example demonstrates its usage by registering a handler that does nothing overriding Ember's default warning behavior. // next is not called, so no warnings get the default behavior Ember.Debug.registerWarnHandler(() =&g

Router#transitionTo()

transitionTo (name, models, options) Transitionpublic Defined in packages/ember-routing/lib/system/router.js:346 Transition the application into another route. The route may be either a single route or route path: See Route.transitionTo for more info. Parameters: name String the name of the route or a URL models ...Object the model(s) or identifier(s) to be used while transitioning to the route. options [Object] optional hash with a queryParams property containing a mapping of

Ember.computed.sort()

sort (itemsKey, sortDefinition) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:584 A computed property which returns a new array with all the properties from the first dependent array sorted based on a property or sort function. The callback method you provide should have the following signature: function(itemA, itemB); itemA the first item to compare. itemB the second item to compare. This function should return negative number (e.g

Route#deactivate()

deactivatepublic Defined in packages/ember-routing/lib/system/route.js:868 This hook is executed when the router completely exits this route. It is not executed when the model for the route changes.

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

DS.Adapter#shouldBackgroundReloadAll()

shouldBackgroundReloadAll (store, snapshotRecordArray) Boolean Defined in addon/adapter.js:619 Available since 1.13.0 This method is used by the store to determine if the store should reload a record array after the store.findAll method resolves with a cached record array. This method is only checked by the store when the store is returning a cached record array. If this method returns true the store will re-fetch all records from the adapter. For example, if you do not want to fetch comple

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