Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #91: Add Backbone.RelationalModel.setup method to set up reverse relations etc. when not using .extend. (CoffeeScript!) #112

Merged
merged 9 commits into from
May 16, 2012

Conversation

DouweM
Copy link
Collaborator

@DouweM DouweM commented Apr 20, 2012

Fixes #91.

Note that this pull requests depends on #111, as I've based the .setup() method on that revision. I'll probably have to reset the commits linked to this pull request once you've pulled #111 in, so we don't pull in all commits related to that request twice.

Backbone.RelationalModel.extend options:
partOfSupermodel: `true` if this model should use the same model collection and relations as its superclass.
submodelTypeAttribute: attribute that should be checked to determine the type of object to build when attributes are passed in. Default: `type`
submodelType: value of attribute defined using submodelTypeAttribute that will cause this type of object to be built.
…ly to set up a Backbone.RelationalModel subclass after defining one without using .extend().
@PaulUithol PaulUithol merged commit a1d5d21 into PaulUithol:master May 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doesn't play nice with CoffeeScript class/extends syntax.
2 participants