-
Notifications
You must be signed in to change notification settings - Fork 9
Backbone extensions
Additional functions for backbone Views, Models and Collections.
This new functions on backbone objects, include a new attribute, the params object, that exists inside the Model and Collection.
Add just one attribute to the model params attribute.
Add many attributes to the model params attribute.
Return all attributes on the model params attribute.
Remove any param choosed from the model params attribute.
Remove all params from the model params attribute.
Return any param choosed from the model params attribute.
Serialize the model params attribute. It means, convert an object to a querystring for http get requests.
Return any attribute value with the name passed or the default value passed.
Convert all the children attributes models or collections to json objects.
Add just one attribute to the collection params attribute.
Add many attributes to the collection params attribute.
Return all attributes on the collection params attribute.
Remove any param choosed from the collection params attribute.
Remove all params from the collection params attribute.
Return any param choosed from the collection params attribute.
Serialize the collection params attribute. It means, convert an object to a querystring for http get requests.
Enhance the backbone View.remove with undelegate events.