Update vendor/underscore.

Former-commit-id: 3d39397aaee8408778b738c3aa105eda67abd6bc
This commit is contained in:
John-David Dalton
2012-11-06 22:00:01 -08:00
parent 23a0507439
commit ed48603ab5
3 changed files with 10 additions and 5 deletions

View File

@@ -91,6 +91,8 @@ $(document).ready(function() {
var iterator = function(value) { return value.name; };
equal(_.map(_.uniq(list, false, iterator), iterator).join(', '), 'moe, curly, larry', 'can find the unique values of an array using a custom iterator');
equal(_.map(_.uniq(list, iterator), iterator).join(', '), 'moe, curly, larry', 'can find the unique values of an array using a custom iterator without specifying whether array is sorted');
var iterator = function(value) { return value +1; };
var list = [1, 2, 2, 3, 4, 4];
equal(_.uniq(list, true, iterator).join(', '), '1, 2, 3, 4', 'iterator works with sorted array');