Debug.registerDeprecationHandler()

registerDeprecationHandler (handler) publicstatic Defined in packages/ember-debug/lib/index.js:224 Available since 2.1.0 Allows for runtime registration of handler functions that override the default deprecation behavior. Deprecations are invoked by calls to Ember.deprecate. The following example demonstrates its usage by registering a handler that throws an error if the message contains the word "should", otherwise defers to the default handler. Ember.Debug.registerDeprecationHandler((mess

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

Debugging

Debugging Ember provides several configuration options that can help you debug problems with your application. Routing Log router transitions app/app.js import Ember from 'ember'; export default Ember.Application.extend({ // Basic logging, e.g. "Transitioned into 'post'" LOG_TRANSITIONS: true, // Extremely detailed logging, highlighting every internal // step made while transitioning into a route, including // `beforeModel`, `model`, and `afterModel` hooks, and // information ab

DataAdapter#_getObjectsOnNamespaces()

_getObjectsOnNamespacesArrayprivate Defined in packages/ember-extension-support/lib/data_adapter.js:372 Loops over all namespaces and all objects attached to them. Returns: Array Array of model type strings.

DataAdapter#wrapRecord()

wrapRecord (record) Objectprivate Defined in packages/ember-extension-support/lib/data_adapter.js:414 Wraps a record and observers changes to it. Parameters: record Object The record instance. Returns: Object The wrapped record. Format: columnValues: {Array} searchKeywords: {Array}

Debug

Ember.Debug Class PUBLIC Defined in: packages/ember-debug/lib/index.js:218 Module: ember-debug

Date

Ember.Date Namespace DEPRECATED Defined in: addon/-private/ext/date.js:9 Module: ember-data Date.parse with progressive enhancement for ISO 8601 https://github.com/csnover/js-iso8601 © 2011 Colin Snover http://zetafleet.com Released under MIT license.

DataAdapter#wrapModelType()

wrapModelType (klass, modelName) Objectprivate Defined in packages/ember-extension-support/lib/data_adapter.js:311 Wraps a given model type and observes changes to it. Parameters: klass Class A model class. modelName String Name of the class. Returns: Object Contains the wrapped type and the function to remove observers Format: type: {Object} The wrapped type. The wrapped type has the following format: name: {String} The name of the type. count: {Integer} The number of record

DataAdapter#watchRecords()

watchRecords (modelName, recordsAdded, recordsUpdated, recordsRemoved) Functionpublic Defined in packages/ember-extension-support/lib/data_adapter.js:172 Fetch the records of a given type and observe them for changes. Parameters: modelName String The model name. recordsAdded Function Callback to call to add records. Takes an array of objects containing wrapped records. The object should have the following properties: columnValues: {Object} The key and value of a table cell. object:

DataAdapter#willDestroy()

willDestroyprivate Defined in packages/ember-extension-support/lib/data_adapter.js:239 Clear all observers before destruction