Permalink
Browse files

Backbone 1.1.2

  • Loading branch information...
jashkenas committed Feb 20, 2014
1 parent 01f7f9b commit 53f77901a4ea9c7cf75d3db93ddddf491998d90f
Showing with 32 additions and 17 deletions.
  1. +1 −1 backbone-min.js
  2. +1 −1 backbone-min.map
  3. +2 −2 backbone.js
  4. +1 −1 bower.json
  5. +1 −1 component.json
  6. +6 −7 docs/backbone.html
  7. +19 −3 index.html
  8. +1 −1 package.json
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-// Backbone.js 1.1.1
+// Backbone.js 1.1.2
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
@@ -41,7 +41,7 @@
var splice = array.splice;
// Current version of the library. Keep in sync with `package.json`.
- Backbone.VERSION = '1.1.1';
+ Backbone.VERSION = '1.1.2';
// For Backbone's purposes, jQuery, Zepto, Ender, or My Library (kidding) owns
// the `$` variable.
View
@@ -1,6 +1,6 @@
{
"name" : "backbone",
- "version" : "1.1.1",
+ "version" : "1.1.2",
"main" : "backbone.js",
"dependencies" : {
"underscore" : ">=1.5.0"
View
@@ -1,6 +1,6 @@
{
"name" : "backbone",
- "version" : "1.1.1",
+ "version" : "1.1.2",
"description" : "Give your JS App some Backbone with Models, Views, Collections, and Events.",
"keywords" : ["model", "view", "controller", "router", "server", "client", "browser"],
"repo" : "jashkenas/backbone",
View
@@ -27,7 +27,7 @@ <h1>backbone.js</h1>
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
- <pre><code>Backbone.js <span class="hljs-number">1.1</span><span class="hljs-number">.1</span>
+ <pre><code>Backbone.js <span class="hljs-number">1.1</span><span class="hljs-number">.2</span>
</code></pre>
</div>
@@ -97,9 +97,8 @@ <h1>backbone.js</h1>
</div>
<div class="content"><div class='highlight'><pre> } <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> (<span class="hljs-keyword">typeof</span> exports !== <span class="hljs-string">'undefined'</span>) {
- <span class="hljs-keyword">var</span> _ = <span class="hljs-built_in">require</span>(<span class="hljs-string">'underscore'</span>), $;
- <span class="hljs-keyword">try</span> { $ = <span class="hljs-built_in">require</span>(<span class="hljs-string">'jquery'</span>); } <span class="hljs-keyword">catch</span>(e) {}
- factory(root, exports, _, $);</pre></div></div>
+ <span class="hljs-keyword">var</span> _ = <span class="hljs-built_in">require</span>(<span class="hljs-string">'underscore'</span>);
+ factory(root, exports, _);</pre></div></div>
</li>
@@ -192,7 +191,7 @@ <h2 id="initial-setup">Initial Setup</h2>
</div>
- <div class="content"><div class='highlight'><pre> Backbone.VERSION = <span class="hljs-string">'1.1.1'</span>;</pre></div></div>
+ <div class="content"><div class='highlight'><pre> Backbone.VERSION = <span class="hljs-string">'1.1.2'</span>;</pre></div></div>
</li>
@@ -3270,7 +3269,7 @@ <h2 id="backbone-router">Backbone.Router</h2>
<span class="hljs-keyword">return</span> optional ? match : <span class="hljs-string">'([^/?]+)'</span>;
})
.replace(splatParam, <span class="hljs-string">'([^?]*?)'</span>);
- <span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> <span class="hljs-built_in">RegExp</span>(<span class="hljs-string">'^'</span> + route + <span class="hljs-string">'(?:\\?(.*))?$'</span>);
+ <span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> <span class="hljs-built_in">RegExp</span>(<span class="hljs-string">'^'</span> + route + <span class="hljs-string">'(?:\\?([\\s\\S]*))?$'</span>);
},</pre></div></div>
</li>
@@ -3751,7 +3750,7 @@ <h2 id="backbone-history">Backbone.History</h2>
<div class="content"><div class='highlight'><pre> stop: <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span>
Backbone.$(window).off(<span class="hljs-string">'popstate'</span>, <span class="hljs-keyword">this</span>.checkUrl).off(<span class="hljs-string">'hashchange'</span>, <span class="hljs-keyword">this</span>.checkUrl);
- clearInterval(<span class="hljs-keyword">this</span>._checkUrlInterval);
+ <span class="hljs-keyword">if</span> (<span class="hljs-keyword">this</span>._checkUrlInterval) clearInterval(<span class="hljs-keyword">this</span>._checkUrlInterval);
History.started = <span class="hljs-literal">false</span>;
},</pre></div></div>
View
@@ -285,7 +285,7 @@
<div id="sidebar" class="interface">
<a class="toc_title" href="#">
- Backbone.js <span class="version">(1.1.1)</span>
+ Backbone.js <span class="version">(1.1.2)</span>
</a>
<ul class="toc_section">
<li>&raquo; <a href="http://github.com/jashkenas/backbone">GitHub Repository</a></li>
@@ -559,11 +559,11 @@ <h2 id="downloads">
<table>
<tr>
- <td><a class="punch" href="backbone.js">Development Version (1.1.1)</a></td>
+ <td><a class="punch" href="backbone.js">Development Version (1.1.2)</a></td>
<td class="text"><i>60kb, Full source, tons of comments</i></td>
</tr>
<tr>
- <td><a class="punch" href="backbone-min.js">Production Version (1.1.1)</a></td>
+ <td><a class="punch" href="backbone-min.js">Production Version (1.1.2)</a></td>
<td class="text" style="line-height: 16px;">
<i>6.5kb, Packed and gzipped</i><br />
<small>(<a href="backbone-min.map">Source Map</a>)</small>
@@ -4031,6 +4031,22 @@ <h2 id="examples-tzigla">Tzigla</h2>
<h2 id="changelog">Change Log</h2>
+ <b class="header">1.1.2</b> &mdash; <small><i>Feb. 20, 2014</i></small>
+ &mdash; <a href="https://github.com/jashkenas/backbone/compare/1.1.1...1.1.2">Diff</a>
+ &mdash; <a href="http://htmlpreview.github.com/?https://raw.github.com/jashkenas/backbone/1.1.2/index.html">Docs</a>
+ <br />
+ <ul style="margin-top: 5px;">
+ <li>
+ Backbone no longer tries to require jQuery in Node/CommonJS environments,
+ for better compatibility with folks using Browserify.
+ If you'd like to have Backbone use jQuery from Node, assign it like so:
+ <tt>Backbone.$ = require('jquery');</tt>
+ </li>
+ <li>
+ Bugfix for route parameters with newlines in them.
+ </li>
+ </ul>
+
<b class="header">1.1.1</b> &mdash; <small><i>Feb. 13, 2014</i></small> &mdash; <a href="https://github.com/jashkenas/backbone/compare/1.1.0...1.1.1">Diff</a> &mdash; <a href="http://htmlpreview.github.com/?https://raw.github.com/jashkenas/backbone/1.1.1/index.html">Docs</a><br />
<ul style="margin-top: 5px;">
<li>
View
@@ -19,7 +19,7 @@
"lint": "jsl -nofilelisting -nologo -conf docs/jsl.conf -process backbone.js"
},
"main" : "backbone.js",
- "version" : "1.1.1",
+ "version" : "1.1.2",
"license" : "MIT",
"repository": {
"type": "git",

0 comments on commit 53f7790

Please sign in to comment.