Update underscore.

Former-commit-id: 7041883ef258e3dc80d3c3751a5e4beecf0b4767
This commit is contained in:
John-David Dalton
2012-09-11 20:15:13 -07:00
parent 83c6fb089e
commit 04fb4aff28
3 changed files with 10 additions and 15 deletions

View File

@@ -44,12 +44,6 @@ $(document).ready(function() {
var doubled = _([1, 2, 3]).map(function(num){ return num * 2; });
equal(doubled.join(', '), '2, 4, 6', 'OO-style doubled numbers');
var ids = _.map($('#map-test').children(), function(n){ return n.id; });
deepEqual(ids, ['id1', 'id2'], 'Can use collection methods on NodeLists.');
var ids = _.map(document.images, function(n){ return n.id; });
ok(ids[0] == 'chart_image', 'can use collection methods on HTMLCollections');
var ifnull = _.map(null, function(){});
ok(_.isArray(ifnull) && ifnull.length === 0, 'handles a null properly');
});