[Pkg-javascript-commits] [backbone] 160/211: fixing refresh -> reset documentation.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.5.0
in repository backbone.

commit 2f0447365735d864d1035b589db407623b409aa0
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Thu May 26 14:13:31 2011 -0400

    fixing refresh -> reset documentation.
---
 backbone.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/backbone.js b/backbone.js
index bef0547..7fa68d4 100644
--- a/backbone.js
+++ b/backbone.js
@@ -492,8 +492,8 @@
     },
 
     // When you have more items than you want to add or remove individually,
-    // you can refresh the entire set with a new list of models, without firing
-    // any `added` or `removed` events. Fires `refresh` when finished.
+    // you can reset the entire set with a new list of models, without firing
+    // any `added` or `removed` events. Fires `reset` when finished.
     reset : function(models, options) {
       models  || (models = []);
       options || (options = {});
@@ -504,9 +504,9 @@
       return this;
     },
 
-    // Fetch the default set of models for this collection, refreshing the
+    // Fetch the default set of models for this collection, resetting the
     // collection when they arrive. If `add: true` is passed, appends the
-    // models to the collection instead of refreshing.
+    // models to the collection instead of resetting.
     fetch : function(options) {
       options || (options = {});
       var collection = this;
@@ -553,7 +553,7 @@
       return _(this.models).chain();
     },
 
-    // Reset all internal state. Called when the collection is refreshed.
+    // Reset all internal state. Called when the collection is reset.
     _reset : function(options) {
       this.length = 0;
       this.models = [];

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list