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
doc_EmberJs
2016-11-30 16:51:09
Comments
Leave a Comment

Please login to continue.