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
This crashes:
<script> var App = {}; $(function() { App.Detail = Backbone.RelationalModel.extend({}); App.Master = Backbone.RelationalModel.extend({ relations: [{ type: Backbone.HasMany, key: 'details', relatedModel: 'App.Detail', reverseRelation: { key: 'master' } }] }); var master = new App.Master; var detail = new App.Detail; master.get('details').push(detail); }); </script>
http://jsbin.com/ejokay/2/edit
The text was updated successfully, but these errors were encountered:
Seems to be an issue with using underscore.js 1.4.0 (1.3.3 works fine)
Sorry, something went wrong.
I'm having the same problem, but 1.3.3 didn't fix it for me (I didn't check if I needed to downgrade backbone as well.)
I'm also using another level in my namespace:
App = { Models: {}, Collections: {}, Controllers: {} }
Seems to work fine with latest Underscore, Backbone and Backbone-relational.
No branches or pull requests
This crashes:
http://jsbin.com/ejokay/2/edit
The text was updated successfully, but these errors were encountered: