mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-24 14:27:56 -05:00
Issue #365. delete options.comparator.
This commit is contained in:
@@ -410,10 +410,7 @@
|
||||
// its models in sort order, as they're added and removed.
|
||||
Backbone.Collection = function(models, options) {
|
||||
options || (options = {});
|
||||
if (options.comparator) {
|
||||
this.comparator = options.comparator;
|
||||
delete options.comparator;
|
||||
}
|
||||
if (options.comparator) this.comparator = options.comparator;
|
||||
_.bindAll(this, '_onModelEvent', '_removeReference');
|
||||
this._reset();
|
||||
if (models) this.reset(models, {silent: true});
|
||||
|
||||
Reference in New Issue
Block a user