Skip to content

Commit f267025

Browse files
committed
0.5.0 is out, with variants of grayrest's patches
1 parent 39001bd commit f267025

File tree

3 files changed

+32
-18
lines changed

3 files changed

+32
-18
lines changed

index.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ <h2>Downloads <i style="padding-left: 12px; font-size:12px;">(Right-click, and u
111111
<p>
112112
<table>
113113
<tr>
114-
<td><a href="underscore.js">Development Version (0.4.7)</a></td>
114+
<td><a href="underscore.js">Development Version (0.5.0)</a></td>
115115
<td><i>20kb, Uncompressed with Comments</i></td>
116116
</tr>
117117
<tr>
118-
<td><a href="underscore-min.js">Production Version (0.4.7)</a></td>
118+
<td><a href="underscore-min.js">Production Version (0.5.0)</a></td>
119119
<td><i>2kb, Packed and Gzipped</i></td>
120120
</tr>
121121
</table>
@@ -1041,6 +1041,19 @@ <h2>Links &amp; Suggested Reading</h2>
10411041

10421042
<h2>Change Log</h2>
10431043

1044+
<p>
1045+
<b class="header">0.5.0</b><br />
1046+
<b>[API Changes]</b> <tt>_.bindAll</tt> now takes the context object as
1047+
its first parameter. If no method names are passed, all of the context
1048+
object's methods are bound to it, enabling chaining and easier binding.
1049+
<tt>_.functions</tt> now takes a single argument and returns the names
1050+
of its Function properties. Calling <tt>_.functions(_)</tt> will get you
1051+
the previous behavior.
1052+
Added <tt>_.isRegExp</tt> so that <tt>isEqual</tt> can now test for RegExp equality.
1053+
All of the "is" functions have been shrunk down into a single definition.
1054+
<a href="http://github.com/grayrest/">Karl Guertin</a> contributed patches.
1055+
</p>
1056+
10441057
<p>
10451058
<b class="header">0.4.7</b><br />
10461059
Added <tt>isDate</tt>, <tt>isNaN</tt>, and <tt>isNull</tt>, for completeness.

underscore-min.js

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

underscore.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
if (typeof exports !== 'undefined') exports._ = _;
3232

3333
// Current version.
34-
_.VERSION = '0.4.7';
34+
_.VERSION = '0.5.0';
3535

3636
/*------------------------ Collection Functions: ---------------------------*/
3737

@@ -347,6 +347,7 @@
347347
var funcs = _.rest(arguments);
348348
if (funcs.length == 0) funcs = _.functions(obj);
349349
_.each(funcs, function(f) { obj[f] = _.bind(obj[f], obj); });
350+
return obj;
350351
};
351352

352353
// Delays a function for the given number of milliseconds, and then calls

0 commit comments

Comments
 (0)