From 26a9175419294d50945c3469ea4b5705df69a48c Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Tue, 27 Oct 2009 13:50:02 -0400 Subject: [PATCH] almost 0.1 --- README | 4 ++-- index.html | 21 +++++++++++++++++++++ underscore-min.js | 1 + 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 underscore-min.js diff --git a/README b/README index a36288fc1..1bf4faf29 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ __ /\ \ __ __ __ ___ \_\ \ __ _ __ ____ ___ ___ _ __ __ /\_\ ____ -/\ \/\ \ /' _ `\ /'_` \ /'__`\/\`'__\/',__\ /'___\ / __`\/\`'__\/'__`\ \/\ \ /',__\ +/\ \/\ \ /' _ `\ /'_ \ /'__`\/\ __\/ ,__\ / ___\ / __`\/\ __\/'__`\ \/\ \ /',__\ \ \ \_\ \/\ \/\ \/\ \ \ \/\ __/\ \ \//\__, `\/\ \__//\ \ \ \ \ \//\ __/ __ \ \ \/\__, `\ \ \____/\ \_\ \_\ \___,_\ \____\\ \_\\/\____/\ \____\ \____/\ \_\\ \____\/\_\ _\ \ \/\____/ \/___/ \/_/\/_/\/__,_ /\/____/ \/_/ \/___/ \/____/\/___/ \/_/ \/____/\/_//\ \_\ \/___/ @@ -14,4 +14,4 @@ in Prototype.js (or Ruby), but without extending any of the built- in Javascript objects. It's the tie to go along with jQuery's tux. For Docs, License, Tests, and pre-packed downloads, see: -http://documentcloud.github.com/underscore/ \ No newline at end of file +http://documentcloud.github.com/underscore/ diff --git a/index.html b/index.html index 9bec576ee..e6a4fe669 100644 --- a/index.html +++ b/index.html @@ -36,6 +36,12 @@ b.method_name { font-size: 18px; } + table, tr, td { + margin: 0; padding: 0; + } + td { + padding: 2px 12px 2px 0; + } code, pre, tt { font-family: Monaco, Consolas, "Lucida Console", monospace; font-size: 12px; @@ -86,6 +92,21 @@ for your perusal.

+

Downloads

+ +

+ + + + + + + + + +
Development Version(16kb, Uncompressed Code)
Production Version(4kb, Packed and Gzipped)
+

+

Table of Contents

diff --git a/underscore-min.js b/underscore-min.js new file mode 100644 index 000000000..56b63e7bf --- /dev/null +++ b/underscore-min.js @@ -0,0 +1 @@ +window._={VERSION:"0.1.0",each:function(c,f,a){var g=0;try{if(c.forEach){c.forEach(f,a)}else{if(c.length){for(var d=0;d=a.computed){a={value:g,computed:f}}});return a.value},min:function(d,c,b){if(!c&&_.isArray(d)){return Math.min.apply(Math,d)}var a;_.each(d,function(g,e){var f=c?c.call(b,g,e):g;if(a==null||fd?1:0}),"value")},sortedIndex:function(f,e,c){c=c||function(g){return g};var a=0,d=f.length;while(a>1;c(f[b])=0})})},zip:function(){var a=_.toArray(arguments);var d=_.max(_.pluck(a,"length"));var c=new Array(d);for(var b=0;b)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return b?a(b):a}}; \ No newline at end of file