From d514f2b4dcb8046ba8330fd4feaae7ba380338f4 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Thu, 12 Jan 2012 16:46:27 -0500 Subject: [PATCH] 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 6c8dcf84..5ffae251 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.