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

Observable#decrementProperty()

decrementProperty (keyName, decrement) Numberpublic Defined in packages/ember-runtime/lib/mixins/observable.js:453 Set the value of a property to the current value minus some amount. player.decrementProperty('lives'); orc.decrementProperty('health', 5); Parameters: keyName String The name of the property to decrement decrement Number The amount to decrement by. Defaults to 1 Returns: Number The new property value

ObjectProxy

Ember.ObjectProxy Class PUBLIC Extends: Ember._ProxyMixin Defined in: packages/ember-runtime/lib/system/object_proxy.js:4 Module: ember Ember.ObjectProxy forwards all properties not defined by the proxy itself to a proxied content object. object = Ember.Object.create({ name: 'Foo' }); proxy = Ember.ObjectProxy.create({ content: object }); // Access and change existing properties proxy.get('name') // 'Foo' proxy.set('name', 'Bar'); object.get('name') // 'Bar' // Crea

Observable

Ember.Observable Class PUBLIC Defined in: packages/ember-runtime/lib/mixins/observable.js:30 Module: ember-runtime Overview This mixin provides properties and property observing functionality, core features of the Ember object model. Properties and observers allow one object to observe changes to a property on another object. This is one of the fundamental ways that models, controllers and views communicate with each other in an Ember application. Any object that has this mixin applied can

Object Inspector

Object Inspector The Inspector includes a panel that allows you to view and interact with your Ember objects. To open it, click on any Ember object. You can then view the object's properties. Viewing Objects Here's what you see when you click on an object: The Inspector displays the parent objects and mixins that are composed into the chosen object, including the inherited properties. Each property value in this view is bound to your application, so if the value of a property updates in your

Objects in Ember

Objects in Ember You'll notice standard JavaScript class patterns and the new ES2015 classes aren't widely used in Ember. Plain objects can still be found, and sometimes they're referred to as "hashes". JavaScript objects don't support the observation of property value changes. Consequently, if an object is going to participate in Ember's binding system you may see an Ember.Object instead of a plain object. Ember.Object also provides a class system, supporting features like mixins and constru

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

NoneLocation#setURL()

setURL (path) private Defined in packages/ember-routing/lib/location/none_location.js:60 Set the path and remembers what was set. Using this method to change the path will not invoke the updateURL callback. Parameters: path String

NoneLocation#handleURL()

handleURL (callback) private Defined in packages/ember-routing/lib/location/none_location.js:85 Sets the path and calls the updateURL callback. Parameters: callback Function

NoneLocation#onUpdateURL()

onUpdateURL (callback) private Defined in packages/ember-routing/lib/location/none_location.js:72 Register a callback to be invoked when the path changes. These callbacks will execute when the user presses the back or forward button, but not after setURL is invoked. Parameters: callback Function