[Pkg-javascript-commits] [backbone] 180/281: fixes #814 -- load initial models after Collection#initialize, not before.
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:02:10 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 d514f2b4dcb8046ba8330fd4feaae7ba380338f4
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date: Thu Jan 12 16:46:27 2012 -0500
fixes #814 -- load initial models after Collection#initialize, not before.
---
backbone.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backbone.js b/backbone.js
index 6c8dcf8..5ffae25 100644
--- a/backbone.js
+++ b/backbone.js
@@ -392,8 +392,8 @@
options || (options = {});
if (options.comparator) this.comparator = options.comparator;
this._reset();
- if (models) this.reset(models, {silent: true});
this.initialize.apply(this, arguments);
+ if (models) this.reset(models, {silent: true});
};
// 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