fixes #814 -- load initial models after Collection#initialize, not before.

This commit is contained in:
Jeremy Ashkenas
2012-01-12 16:46:27 -05:00
parent 93cb997fc3
commit d514f2b4dc

View File

@@ -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.