backbone-associations
Advanced tools
Changelog
Version 0.6.2 - Diff
collectionOptions
- Can be an options hash or a function which returns an options hash. These options will be utilized while instantiating a new collection of type collectionType
parents
property eagerly, so that it is available in the children initialize
at the time of graph creation.destroy
operations (Issue #111 & #114)idAttribute
(Issue #112)Changelog
Version 0.6.0 - Diff
collectionType
can be a function as well. This makes the API of relatedModel
and collectionType
uniform.relatedModel
and collectionType
are specified as strings, the global scopes will also be searched for locating the model definition.scope
- can now be specified while defining a relation. Use to it define the scope of relatedModel
and collectionType
string.serialize
- can now be specified while defining a relation. Use this attribute to set an array of attributes (singleton or subset) which will be serialized to the server end-point.Changelog
Version 0.5.5 - Diff
Changelog
Version 0.5.2 - Diff
Changelog
Version 0.5.1 - Diff
relatedModel
can now also be a function. Could be used to model polymorphic associations like in this gist.relatedModel
can be passed a special value called Backbone.self
to handle self references.Backbone.Model
to prevent memory leaks when users set Backbone.Model
to undefined explicitly.Backbone.Collection
.Backbone.Model
or Backbone.Collection
caused event bubbling to stop.Changelog
Version 0.5.0 - Diff