Ember.trySet()

trySet (root, path, value) public

Defined in packages/ember-metal/lib/property_set.js:130

Error-tolerant form of Ember.set. Will not blow up if any part of the chain is undefined, null, or destroyed.

This is primarily used when syncing bindings, which may try to update after an object has been destroyed.

Parameters:

root Object
The object to modify.
path String
The property path to set
value Object
The value to set
doc_EmberJs
2016-11-30 16:51:47
Comments
Leave a Comment

Please login to continue.