From 9603ede12012e03a98ff61a7007330c2ecfb41b9 Mon Sep 17 00:00:00 2001 From: Paul Uithol Date: Sun, 24 Jul 2011 03:15:45 +0200 Subject: [PATCH] Fix a small error in the readme's example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4704cf31..622bc1d5 100644 --- a/README.md +++ b/README.md @@ -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'.