Skip to content

Commit

Permalink
Fix a small error in the readme's example
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulUithol committed Jul 24, 2011
1 parent 5edf53a commit 9603ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ ourHouse = new House({

// 'ourHouse.occupants' is turned into a Backbone.Collection of Persons.
// The first person in 'ourHouse.occupants' will point to 'paul'.
ourHouse.occupants.at(0); // === paul
ourHouse.get('occupants').at(0); // === paul

// the relation from 'House.occupants' to 'Person' has been defined as a bi-directional HasMany relation,
// with a reverse relation to 'Person.livesIn'. So, 'paul.livesIn' will automatically point back to 'ourHouse'.
Expand Down

0 comments on commit 9603ede

Please sign in to comment.