Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Relations can now be a method or a property #370
It becomes easier to override if you use an interface.
Example for the "events" Backbone property : https://github.com/jashkenas/backbone/blob/master/backbone.js#L1064
Ok, I'll do that asap. Thanks
Le 24 juil. 2013 à 14:57, Paul Uithol firstname.lastname@example.org a écrit :
added a commit
this pull request
Aug 5, 2013
Sorry, had to take this out.. this breaks with submodels. We directly modify the relations array in a couple of places, which is not possible when it's defined as a function. The only way around this would be to directly execute (and store) the function's results whenever we first encounter a model.. but that may be defeating the purpose of having a function in the first place.