From 3eb9c280397f70db24766a26ab072a23f0777c3e Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Tue, 8 Dec 2009 17:31:01 -0500 Subject: [PATCH] Underscore shouldn't be able to iterate over the letters of a string cross-browser -- indexing into a string isn't supported in IE --- test/collections.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/collections.js b/test/collections.js index c0bfe1ee8..47ca9d430 100644 --- a/test/collections.js +++ b/test/collections.js @@ -15,10 +15,6 @@ $(document).ready(function() { _.each([1, 2, 3], function(num){ answers.push(num * this.multiplier);}, {multiplier : 5}); equals(answers.join(', '), '5, 10, 15', 'context object property accessed'); - answers = []; - _.each("moe", function(letter){ answers.push(letter); }); - equals(answers.join(', '), 'm, o, e', 'iterates over the letters in strings'); - answers = []; _.forEach([1, 2, 3], function(num){ answers.push(num); }); equals(answers.join(', '), '1, 2, 3', 'aliased as "forEach"');