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-min.js | 10 +++++----- lib/underscore/underscore.js | 8 ++++---- lib/underscore/update.sh | 7 +++++++ 3 files changed, 16 insertions(+), 9 deletions(-) create mode 100755 lib/underscore/update.sh (limited to 'lib') diff --git a/lib/underscore/underscore-min.js b/lib/underscore/underscore-min.js index 53145b71..9492ae91 100644 --- a/lib/underscore/underscore-min.js +++ b/lib/underscore/underscore-min.js @@ -1,8 +1,8 @@ -(function(){var j=this,n=j._,i=function(a){this._wrapped=a},m=typeof StopIteration!=="undefined"?StopIteration:"__break__",b=j._=function(a){return new i(a)};if(typeof exports!=="undefined")exports._=b;var k=Array.prototype.slice,o=Array.prototype.unshift,p=Object.prototype.toString,q=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;b.VERSION="0.5.7";b.each=function(a,c,d){try{if(a.forEach)a.forEach(c,d);else if(b.isArray(a)||b.isArguments(a))for(var e=0,f=a.length;e=e.computed&&(e={value:f,computed:g})});return e.value};b.min=function(a,c,d){if(!c&&b.isArray(a))return Math.min.apply(Math,a);var e={computed:Infinity};b.each(a,function(f,g,h){g=c?c.call(d,f,g,h):f;g=e.computed&&(e={value:f,computed:g})});return e.value};b.min=function(a,c,d){if(!c&&b.isArray(a))return Math.min.apply(Math,a);var e={computed:Infinity};b.each(a,function(f,g,h){g=c?c.call(d,f,g,h):f;gf?1:0}),"value")};b.sortedIndex=function(a,c,d){d=d||b.identity;for(var e=0,f=a.length;e>1;d(a[g])=0})})};b.zip=function(){for(var a=b.toArray(arguments),c=b.max(b.pluck(a,"length")),d=new Array(c),e=0;e