mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-23 05:48:10 -05:00
fixes #814 -- load initial models after Collection#initialize, not before.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user