Skip to content

Commit

Permalink
bugfix,in some spacial js environment,it will happen.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpsega committed Aug 7, 2013
1 parent ccd7a20 commit 955d3c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions underscore.js
Expand Up @@ -311,6 +311,9 @@
criteria : iterator.call(context, value, index, list)
};
}).sort(function(left, right) {
if(left === right){
return 0;
}
var a = left.criteria;
var b = right.criteria;
if (a !== b) {
Expand Down

0 comments on commit 955d3c7

Please sign in to comment.