Skip to content

Commit

Permalink
Underscore 0.5.5, with a fix for OOP-wrapping in MobileSafari, thanks…
Browse files Browse the repository at this point in the history
… to terrcin.
  • Loading branch information
jashkenas committed Jan 10, 2010
1 parent 6866ffb commit cda9099
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
9 changes: 7 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,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.5.4)</a></td>
<td><a href="underscore.js">Development Version (0.5.5)</a></td>
<td><i>22kb, Uncompressed with Comments</i></td>
</tr>
<tr>
<td><a href="underscore-min.js">Production Version (0.5.4)</a></td>
<td><a href="underscore-min.js">Production Version (0.5.5)</a></td>
<td><i>3kb, Packed and Gzipped</i></td>
</tr>
</table>
Expand Down Expand Up @@ -1067,6 +1067,11 @@ <h2>Links &amp; Suggested Reading</h2>

<h2>Change Log</h2>

<p>
<b class="header">0.5.5</b><br />
Fix for a bug in MobileSafari's OOP-wrapper, with the arguments object.
</p>

<p>
<b class="header">0.5.4</b><br />
Fix for multiple single quotes within a template string for
Expand Down
6 changes: 3 additions & 3 deletions underscore-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
propertyIsEnumerable = Object.prototype.propertyIsEnumerable;

// Current version.
_.VERSION = '0.5.4';
_.VERSION = '0.5.5';

// ------------------------ Collection Functions: ---------------------------

Expand Down Expand Up @@ -600,8 +600,9 @@
_.each(_.functions(_), function(name) {
var method = _[name];
wrapper.prototype[name] = function() {
unshift.call(arguments, this._wrapped);
return result(method.apply(_, arguments), this._chain);
var args = _.toArray(arguments);
unshift.call(args, this._wrapped);
return result(method.apply(_, args), this._chain);
};
});

Expand Down

0 comments on commit cda9099

Please sign in to comment.