model.changedAttributes

changedAttributesmodel.changedAttributes([attributes])
Retrieve a hash of only the model's attributes that have changed since the last set, or false if there are none. Optionally, an external attributes hash can be passed in, returning the attributes in that hash which differ from the model. This can be used to figure out which portions of a view should be updated, or what calls need to be made to sync the changes to the server.

doc_Backbone
2016-04-17 12:21:36
Comments
Leave a Comment

Please login to continue.