pathable / supermodel

Supermodel - Minimal Model Tracking for Backbonejs
http://pathable.github.io/supermodel
MIT License
229 stars 36 forks source link

Possible error in the docs (under 'through') #55

Closed agonbina closed 9 years ago

agonbina commented 10 years ago

In the last example with the 'through' option, I believe there is an error here:

var user = User.create({id: 3});
var group = Group.create({id: 6});
var membership = Membership.create({user_id: 3, group_id: 6});

membership.user() === user; // true
**HERE**membership.group() === user; // true 

I'm assuming the intention was to compare membership.group() with the group instance, ie

membership.group() === group;