Observable#addObserver()

addObserver (key, target, method) public Defined in packages/ember-runtime/lib/mixins/observable.js:333 Adds an observer on a property. This is the core method used to register an observer for a property. Once you call this method, any time the key's value is set, your observer will be notified. Note that the observers are triggered any time the value is set, regardless of whether it has actually changed. Your observer should be prepared to handle that. You can also pass an optional context

EventDispatcher

Ember.EventDispatcher Class PRIVATE Extends: Ember.Object Defined in: packages/ember-views/lib/system/event_dispatcher.js:22 Module: ember-views Ember.EventDispatcher handles delegating browser events to their corresponding Ember.Views. For example, when you click on a view, Ember.EventDispatcher ensures that that view's mouseDown method gets called.

String#w()

w (str) Arraypublic Defined in packages/ember-runtime/lib/system/string.js:206 Splits a string into separate units separated by spaces, eliminating any empty strings in the process. This is a convenience method for split that is mostly useful when applied to the String.prototype. Ember.String.w("alpha beta gamma").forEach(function(key) { console.log(key); }); // > alpha // > beta // > gamma Parameters: str String The string to split Returns: Array array containing th

DS.Errors#unknownProperty()

unknownPropertyprivate Defined in addon/-private/system/model/errors.js:184

Test#fillIn()

fillIn (selector, text) RSVP.Promisepublic Defined in packages/ember-testing/lib/helpers.js:85 Fills in an input element with some text. Example: fillIn('#email', 'you@example.com').then(function() { // assert something }); Parameters: selector String jQuery selector finding an input element on the DOM to fill text with text String text to place inside the input element Returns: RSVP.Promise

String#fmt()

fmt (str, formats) Stringdeprecatedpublic Defined in packages/ember-runtime/lib/system/string.js:155 Use ES6 template strings instead: http://babeljs.io/docs/learn-es2015/#template-strings Apply formatting options to the string. This will look for occurrences of "%@" in your string and substitute them with the arguments you pass into this method. If you want to control the specific order of replacement, you can add a number after the key as well to indicate which argument you want to inse

Controllers

Introduction Controllers Controllers behave like a specialized type of Component that is rendered by the router when entering a Route. The controller receives a single property from the Route – model – which is the return value of the Route's model() method. To define a Controller, run: ember generate controller my-controller-name The value of my-controller-name must match the name of the Route that renders it. So a Route named blog-post would have a matching Controller named blog-post. You

Ember.FEATURES#isEnabled()

isEnabled (feature) Booleanpublic Defined in packages/ember-metal/lib/features.js:20 Available since 1.1.0 Determine whether the specified feature is enabled. Used by Ember's build tools to exclude experimental features from beta/stable builds. You can define the following configuration options: EmberENV.ENABLE_OPTIONAL_FEATURES - enable any features that have not been explicitly enabled/disabled. Parameters: feature String The feature to check Returns: Boolean

DS.Store#normalize()

normalize (modelName, payload) Object Defined in addon/-private/system/store.js:2271 normalize converts a json payload into the normalized form that push expects. Example socket.on('message', function(message) { var modelName = message.model; var data = message.data; store.push(store.normalize(modelName, data)); }); Parameters: modelName String The name of the model type for this payload payload Object Returns: Object The normalized payload

CoreObject#mergedProperties

mergedPropertiesArraypublic Defined in packages/ember-runtime/lib/system/core_object.js:324 Defines the properties that will be merged from the superclass (instead of overridden). By default, when you extend an Ember class a property defined in the subclass overrides a property with the same name that is defined in the superclass. However, there are some cases where it is preferable to build up a property's value by merging the superclass property value with the subclass property's value. A