[Pkg-javascript-commits] [backbone] 243/281: Fixes #886, pass through options.parse when creating a new collection.
    Jonas Smedegaard 
    js at moszumanska.debian.org
       
    Sat May  3 17:02:18 UTC 2014
    
    
  
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.9.0
in repository backbone.
commit 3e5f7132a84867cc2e4a4a46bfdbba24678366eb
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Mon Jan 23 14:58:28 2012 -0500
    Fixes #886, pass through options.parse when creating a new collection.
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backbone.js b/backbone.js
index c407e54..a03e146 100644
--- a/backbone.js
+++ b/backbone.js
@@ -447,7 +447,7 @@
     if (options.comparator) this.comparator = options.comparator;
     this._reset();
     this.initialize.apply(this, arguments);
-    if (models) this.reset(models, {silent: true});
+    if (models) this.reset(models, {silent: true, parse: options.parse});
   };
 
   // Define the Collection's inheritable methods.
-- 
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