Permalink
Browse files

Underscore 1.8.3

  • Loading branch information...
1 parent 3101e18 commit a11976edb79bf15e034e71a7bbf03281728e685e @jashkenas committed Apr 2, 2015
Showing with 371 additions and 309 deletions.
  1. +1 −1 bower.json
  2. +1 −1 component.json
  3. +333 −297 docs/underscore.html
  4. +30 −4 index.html
  5. +1 −1 package.json
  6. +2 −2 underscore-min.js
  7. +1 −1 underscore-min.map
  8. +2 −2 underscore.js
View
@@ -1,6 +1,6 @@
{
"name": "underscore",
- "version": "1.8.2",
+ "version": "1.8.3",
"main": "underscore.js",
"keywords": ["util", "functional", "server", "client", "browser"],
"ignore" : ["docs", "test", "*.yml", "CNAME", "index.html", "favicon.ico", "CONTRIBUTING.md", ".*", "component.json", "package.json", "karma.*"]
View
@@ -5,6 +5,6 @@
"repo" : "jashkenas/underscore",
"main" : "underscore.js",
"scripts" : ["underscore.js"],
- "version" : "1.8.2",
+ "version" : "1.8.3",
"license" : "MIT"
}
View
Oops, something went wrong.
View
@@ -180,7 +180,7 @@
<div id="sidebar" class="interface">
<a class="toc_title" href="#">
- Underscore.js <span class="version">(1.8.2)</span>
+ Underscore.js <span class="version">(1.8.3)</span>
</a>
<ul class="toc_section">
<li>&raquo; <a href="https://github.com/jashkenas/underscore">GitHub Repository</a></li>
@@ -279,6 +279,7 @@
<li>- <a href="#mapObject">mapObject</a></li>
<li>- <a href="#pairs">pairs</a></li>
<li>- <a href="#invert">invert</a></li>
+ <li>- <a href="#create">create</a></li>
<li>- <a href="#object-functions">functions</a></li>
<li>- <a href="#findKey">findKey</a></li>
<li>- <a href="#extend">extend</a></li>
@@ -402,11 +403,11 @@
<table>
<tr>
- <td><a href="underscore.js">Development Version (1.8.2)</a></td>
- <td><i>51kb, Uncompressed with Plentiful Comments</i></td>
+ <td><a href="underscore.js">Development Version (1.8.3)</a></td>
+ <td><i>52kb, Uncompressed with Plentiful Comments</i></td>
</tr>
<tr>
- <td><a href="underscore-min.js">Production Version (1.8.2)</a></td>
+ <td><a href="underscore-min.js">Production Version (1.8.3)</a></td>
<td>
<i>5.7kb, Minified and Gzipped</i>
&nbsp;<small>(<a href="underscore-min.map">Source Map</a>)</small>
@@ -1404,6 +1405,17 @@ <h2 id="objects">Object Functions</h2>
=&gt; {Moses: "Moe", Louis: "Larry", Jerome: "Curly"};
</pre>
+ <p id="create">
+ <b class="header">create</b><code>_.create(prototype, props)</code>
+ <br />
+ Creates a new object with the given prototype, optionally attaching
+ <b>props</b> as <i>own</i> properties. Basically, <tt>Object.create</tt>,
+ but without all of the property descriptor jazz.
+ </p>
+ <pre>
+var moe = _.create(Stooge.prototype, {name: "Moe"});
+</pre>
+
<p id="object-functions">
<b class="header">functions</b><code>_.functions(object)</code>
<span class="alias">Alias: <b>methods</b></span>
@@ -2193,6 +2205,20 @@ <h2 id="links">Links &amp; Suggested Reading</h2>
<h2 id="changelog">Change Log</h2>
+ <p id="1.8.3">
+ <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 />
+ <ul>
+ <li>
+ Adds an <tt>_.create</tt> method, as a slimmed down version of
+ <tt>Object.create</tt>.
+ </li>
+ <li>
+ Works around an iOS bug that can improperly cause <tt>isArrayLike</tt>
+ to be JIT-ed. Also fixes a bug when passing <tt>0</tt> to <tt>isArrayLike</tt>.
+ </li>
+ </ul>
+ </p>
+
<p id="1.8.2">
<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 />
<ul>
View
@@ -15,7 +15,7 @@
"url": "git://github.com/jashkenas/underscore.git"
},
"main": "underscore.js",
- "version": "1.8.2",
+ "version": "1.8.3",
"devDependencies": {
"docco": "*",
"eslint": "0.6.x",
View
Oops, something went wrong.
View
Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-// Underscore.js 1.8.2
+// Underscore.js 1.8.3
// http://underscorejs.org
// (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Underscore may be freely distributed under the MIT license.
@@ -55,7 +55,7 @@
}
// Current version.
- _.VERSION = '1.8.2';
+ _.VERSION = '1.8.3';
// Internal function that returns an efficient (for current engines) version
// of the passed-in callback, to be repeatedly applied in other Underscore

0 comments on commit a11976e

Please sign in to comment.