From 97c02c9def42655e28ec86fed288ca363b152f9e Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Sat, 20 Feb 2010 14:56:06 -0800 Subject: upgraded underscore.js for ie compatibility --- lib/underscore/underscore.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/underscore/underscore.js') diff --git a/lib/underscore/underscore.js b/lib/underscore/underscore.js index 7006910e..faadaeb8 100644 --- a/lib/underscore/underscore.js +++ b/lib/underscore/underscore.js @@ -38,7 +38,7 @@ propertyIsEnumerable = Object.prototype.propertyIsEnumerable; // Current version. - _.VERSION = '0.5.7'; + _.VERSION = '0.5.8'; // ------------------------ Collection Functions: --------------------------- @@ -49,7 +49,7 @@ try { if (obj.forEach) { obj.forEach(iterator, context); - } else if (_.isArray(obj) || _.isArguments(obj)) { + } else if (_.isNumber(obj.length)) { for (var i=0, l=obj.length; i