Ember.propertyWillChange()

propertyWillChange (obj, keyName) Voidprivate

Defined in packages/ember-metal/lib/property_events.js:27

This function is called just before an object property is about to change. It will notify any before observers and prepare caches among other things.

Normally you will not need to call this method directly but if for some reason you can't directly watch a property you can invoke this method manually along with Ember.propertyDidChange() which you should call just after the property value changes.

Parameters:

obj Object
The object with the property that will change
keyName String
The property key (or path) that will change.

Returns:

Void
doc_EmberJs
2016-11-30 16:51:37
Comments
Leave a Comment

Please login to continue.