You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing it that way is just asking for trouble. Sooner or later someone will set up a relation with a name that clashes with an already existing Backbone.Model property or method. Plus it's ugly.
I suggest storing them in Backbone.RelationalModel._relations.
A consequence is that Backbone.RelationalModel.someRelation will stop working. However, there is already the alternative (or even preferable) way of Backbone.Model.get("someRelation").
The text was updated successfully, but these errors were encountered:
Doing it that way is just asking for trouble. Sooner or later someone will set up a relation with a name that clashes with an already existing Backbone.Model property or method. Plus it's ugly.
I suggest storing them in Backbone.RelationalModel._relations.
A consequence is that Backbone.RelationalModel.someRelation will stop working. However, there is already the alternative (or even preferable) way of Backbone.Model.get("someRelation").
The text was updated successfully, but these errors were encountered: