PaulUithol / Backbone-relational

Get and set relations (one-to-one, one-to-many, many-to-one) for Backbone models
http://backbonerelational.org
MIT License
2.34k stars 330 forks source link

Support `relations` declaration within functions #546

Open matghaleb opened 9 years ago

matghaleb commented 9 years ago

Using _.result to support both relations: [] and relations: function () { return []; } declarations is especially useful with inheritance and abstract models