Skip to content

Commit a11976e

Browse files
committed
Underscore 1.8.3
1 parent 3101e18 commit a11976e

File tree

8 files changed

+371
-309
lines changed

8 files changed

+371
-309
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "underscore",
3-
"version": "1.8.2",
3+
"version": "1.8.3",
44
"main": "underscore.js",
55
"keywords": ["util", "functional", "server", "client", "browser"],
66
"ignore" : ["docs", "test", "*.yml", "CNAME", "index.html", "favicon.ico", "CONTRIBUTING.md", ".*", "component.json", "package.json", "karma.*"]

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"repo" : "jashkenas/underscore",
66
"main" : "underscore.js",
77
"scripts" : ["underscore.js"],
8-
"version" : "1.8.2",
8+
"version" : "1.8.3",
99
"license" : "MIT"
1010
}

docs/underscore.html

Lines changed: 333 additions & 297 deletions
Large diffs are not rendered by default.

index.html

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
<div id="sidebar" class="interface">
181181

182182
<a class="toc_title" href="#">
183-
Underscore.js <span class="version">(1.8.2)</span>
183+
Underscore.js <span class="version">(1.8.3)</span>
184184
</a>
185185
<ul class="toc_section">
186186
<li>&raquo; <a href="https://github.com/jashkenas/underscore">GitHub Repository</a></li>
@@ -279,6 +279,7 @@
279279
<li>- <a href="#mapObject">mapObject</a></li>
280280
<li>- <a href="#pairs">pairs</a></li>
281281
<li>- <a href="#invert">invert</a></li>
282+
<li>- <a href="#create">create</a></li>
282283
<li>- <a href="#object-functions">functions</a></li>
283284
<li>- <a href="#findKey">findKey</a></li>
284285
<li>- <a href="#extend">extend</a></li>
@@ -402,11 +403,11 @@ <h2>Downloads <i style="padding-left: 12px; font-size:12px;">(Right-click, and u
402403

403404
<table>
404405
<tr>
405-
<td><a href="underscore.js">Development Version (1.8.2)</a></td>
406-
<td><i>51kb, Uncompressed with Plentiful Comments</i></td>
406+
<td><a href="underscore.js">Development Version (1.8.3)</a></td>
407+
<td><i>52kb, Uncompressed with Plentiful Comments</i></td>
407408
</tr>
408409
<tr>
409-
<td><a href="underscore-min.js">Production Version (1.8.2)</a></td>
410+
<td><a href="underscore-min.js">Production Version (1.8.3)</a></td>
410411
<td>
411412
<i>5.7kb, Minified and Gzipped</i>
412413
&nbsp;<small>(<a href="underscore-min.map">Source Map</a>)</small>
@@ -1402,6 +1403,17 @@ <h2 id="objects">Object Functions</h2>
14021403
<pre>
14031404
_.invert({Moe: "Moses", Larry: "Louis", Curly: "Jerome"});
14041405
=&gt; {Moses: "Moe", Louis: "Larry", Jerome: "Curly"};
1406+
</pre>
1407+
1408+
<p id="create">
1409+
<b class="header">create</b><code>_.create(prototype, props)</code>
1410+
<br />
1411+
Creates a new object with the given prototype, optionally attaching
1412+
<b>props</b> as <i>own</i> properties. Basically, <tt>Object.create</tt>,
1413+
but without all of the property descriptor jazz.
1414+
</p>
1415+
<pre>
1416+
var moe = _.create(Stooge.prototype, {name: "Moe"});
14051417
</pre>
14061418

14071419
<p id="object-functions">
@@ -2193,6 +2205,20 @@ <h2 id="links">Links &amp; Suggested Reading</h2>
21932205

21942206
<h2 id="changelog">Change Log</h2>
21952207

2208+
<p id="1.8.3">
2209+
<b class="header">1.8.3</b> &mdash; <small><i>April 2, 2015</i></small> &mdash; <a href="https://github.com/jashkenas/underscore/compare/1.8.2...1.8.3">Diff</a> &mdash; <a href="https://cdn.rawgit.com/jashkenas/underscore/1.8.3/index.html">Docs</a><br />
2210+
<ul>
2211+
<li>
2212+
Adds an <tt>_.create</tt> method, as a slimmed down version of
2213+
<tt>Object.create</tt>.
2214+
</li>
2215+
<li>
2216+
Works around an iOS bug that can improperly cause <tt>isArrayLike</tt>
2217+
to be JIT-ed. Also fixes a bug when passing <tt>0</tt> to <tt>isArrayLike</tt>.
2218+
</li>
2219+
</ul>
2220+
</p>
2221+
21962222
<p id="1.8.2">
21972223
<b class="header">1.8.2</b> &mdash; <small><i>Feb. 22, 2015</i></small> &mdash; <a href="https://github.com/jashkenas/underscore/compare/1.8.1...1.8.2">Diff</a> &mdash; <a href="https://cdn.rawgit.com/jashkenas/underscore/1.8.2/index.html">Docs</a><br />
21982224
<ul>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"url": "git://github.com/jashkenas/underscore.git"
1616
},
1717
"main": "underscore.js",
18-
"version": "1.8.2",
18+
"version": "1.8.3",
1919
"devDependencies": {
2020
"docco": "*",
2121
"eslint": "0.6.x",

underscore-min.js

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

underscore-min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

underscore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Underscore.js 1.8.2
1+
// Underscore.js 1.8.3
22
// http://underscorejs.org
33
// (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
44
// Underscore may be freely distributed under the MIT license.
@@ -55,7 +55,7 @@
5555
}
5656

5757
// Current version.
58-
_.VERSION = '1.8.2';
58+
_.VERSION = '1.8.3';
5959

6060
// Internal function that returns an efficient (for current engines) version
6161
// of the passed-in callback, to be repeatedly applied in other Underscore

0 commit comments

Comments
 (0)