Permalink
Browse files

0.5.0 is out, with variants of grayrest's patches

  • Loading branch information...
jashkenas committed Dec 7, 2009
1 parent 39001bd commit f2670259d1a5895a0e56711ce24478f097bf52d3
Showing with 32 additions and 18 deletions.
  1. +15 −2 index.html
  2. +15 −15 underscore-min.js
  3. +2 −1 underscore.js
View
@@ -111,11 +111,11 @@ <h2>Downloads <i style="padding-left: 12px; font-size:12px;">(Right-click, and u
<p>
<table>
<tr>
- <td><a href="underscore.js">Development Version (0.4.7)</a></td>
+ <td><a href="underscore.js">Development Version (0.5.0)</a></td>
<td><i>20kb, Uncompressed with Comments</i></td>
</tr>
<tr>
- <td><a href="underscore-min.js">Production Version (0.4.7)</a></td>
+ <td><a href="underscore-min.js">Production Version (0.5.0)</a></td>
<td><i>2kb, Packed and Gzipped</i></td>
</tr>
</table>
@@ -1041,6 +1041,19 @@ <h2>Links &amp; Suggested Reading</h2>
<h2>Change Log</h2>
+ <p>
+ <b class="header">0.5.0</b><br />
+ <b>[API Changes]</b> <tt>_.bindAll</tt> now takes the context object as
+ its first parameter. If no method names are passed, all of the context
+ object's methods are bound to it, enabling chaining and easier binding.
+ <tt>_.functions</tt> now takes a single argument and returns the names
+ of its Function properties. Calling <tt>_.functions(_)</tt> will get you
+ the previous behavior.
+ Added <tt>_.isRegExp</tt> so that <tt>isEqual</tt> can now test for RegExp equality.
+ All of the "is" functions have been shrunk down into a single definition.
+ <a href="http://github.com/grayrest/">Karl Guertin</a> contributed patches.
+ </p>
+
<p>
<b class="header">0.4.7</b><br />
Added <tt>isDate</tt>, <tt>isNaN</tt>, and <tt>isNull</tt>, for completeness.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -31,7 +31,7 @@
if (typeof exports !== 'undefined') exports._ = _;
// Current version.
- _.VERSION = '0.4.7';
+ _.VERSION = '0.5.0';
/*------------------------ Collection Functions: ---------------------------*/
@@ -347,6 +347,7 @@
var funcs = _.rest(arguments);
if (funcs.length == 0) funcs = _.functions(obj);
_.each(funcs, function(f) { obj[f] = _.bind(obj[f], obj); });
+ return obj;
};
// Delays a function for the given number of milliseconds, and then calls

0 comments on commit f267025

Please sign in to comment.