Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
Typo in example
Browse files Browse the repository at this point in the history
I think the example is about people, not cars. Maybe it was an old reference to old example code..
  • Loading branch information
luke83 committed Jan 1, 2015
1 parent f8d5664 commit 17da741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ Data synchronization
When the client goes offline, dualStorage allows you to keep changing and destroying records. All changes will be sent when the client goes online again.

// server online. Go!
people.fetch(); // load cars models and save them into localstorage
people.fetch(); // load people models and save them into localstorage

// server offline!
people.create({name: "Turing"}); // you still can create new cars...
people.create({name: "Turing"}); // you still can create new people...
people.models[0].save({age: 41}); // update existing ones...
people.models[1].destroy(); // and destroy as well

Expand Down

0 comments on commit 17da741

Please sign in to comment.