From c5cbf57c42c73fb9a8d864bfc2899e799bb3fcdd Mon Sep 17 00:00:00 2001 From: Jacob Wejendorp Date: Mon, 23 Sep 2013 02:06:53 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 74e2c8d..f431553 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ and update the fields when (if) more data becomes available. This will make collections work in offline mode, or just present cached data until the server gets around to responding. +## Future +Keep track of unsaved models and sync when possible. + ## Installation $ component install wejendorp/local-collection-sync @@ -70,4 +73,4 @@ TODO - [visionmedia/superagent](https://github.com/visionmedia/superagent) ## License -MIT \ No newline at end of file +MIT From d05692ea250a28a33baa85e912410b41d1e1d462 Mon Sep 17 00:00:00 2001 From: Jacob Wejendorp Date: Mon, 23 Sep 2013 02:11:50 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f431553..57d2894 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,10 @@ from cache on refresh, and new items will pop up when server responds to fetch. var userCollection = require('usercollection'); var users = userCollection.fetch('active'); -users.each(show); +users.each(show); // Show cached results users.on('change', function() { - this.each(show); + this.each(show); // Show server results }); var body = document.body;