[Pkg-javascript-commits] [backbone] 157/211: Issue #365. delete options.comparator.
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:00:18 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.5.0
in repository backbone.
commit 2b1eae4d9c50a77a252fdcfbaa4e8aefa66df8fc
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date: Thu May 26 13:54:22 2011 -0400
Issue #365. delete options.comparator.
---
backbone.js | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/backbone.js b/backbone.js
index 5cef2ce..bef0547 100644
--- a/backbone.js
+++ b/backbone.js
@@ -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});
--
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