model.attributes

attributesmodel.attributes
The attributes property is the internal hash containing the model's state â usually (but not necessarily) a form of the JSON object representing the model data on the server. It's often a straightforward serialization of a row from the database, but it could also be client-side computed state.

Please use set to update the attributes instead of modifying them directly. If you'd like to retrieve and munge a copy of the model's attributes, use _.clone(model.attributes) instead.

Due to the fact that Events accepts space separated lists of events, attribute names should not include spaces.

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

Please login to continue.