Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
node-version: 16
cache: 'npm'
- name: Install dependencies
run: |
npm ci
npm install --no-audit karma-cli karma-sauce-launcher
- name: Test
run: npm test
- name: Test in Sauce Labs
run: BUILD_NUMBER="$GITHUB_RUN_NUMBER" BUILD_ID="$GITHUB_RUN_ID" JOB_NUMBER="$GITHUB_JOB" ./node_modules/.bin/karma start karma.conf-sauce.js
env:
Expand Down
2 changes: 1 addition & 1 deletion backbone-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion backbone-min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion backbone-min.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions backbone.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Backbone.js 1.6.0
// Backbone.js 1.6.1

// (c) 2010-2024 Jeremy Ashkenas and DocumentCloud
// Backbone may be freely distributed under the MIT license.
Expand Down Expand Up @@ -44,7 +44,7 @@
var slice = Array.prototype.slice;

// Current version of the library. Keep in sync with `package.json`.
Backbone.VERSION = '1.6.0';
Backbone.VERSION = '1.6.1';

// For Backbone's purposes, jQuery, Zepto, Ender, or My Library (kidding) owns
// the `$` variable.
Expand Down
8 changes: 5 additions & 3 deletions docs/backbone.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1>backbone.js</h1>
<div class="sswrap ">
<a class="ss" href="#section-1">&#x00a7;</a>
</div>
<pre><code><span class="hljs-title class_">Backbone</span>.<span class="hljs-property">js</span> <span class="hljs-number">1.6</span><span class="hljs-number">.0</span>
<pre><code><span class="hljs-title class_">Backbone</span>.<span class="hljs-property">js</span> <span class="hljs-number">1.6</span><span class="hljs-number">.1</span>
</code></pre>

</div>
Expand Down Expand Up @@ -208,7 +208,7 @@ <h2 id="initial-setup">Initial Setup</h2>

</div>

<div class="content"><div class='highlight'><pre> <span class="hljs-title class_">Backbone</span>.<span class="hljs-property">VERSION</span> = <span class="hljs-string">&#x27;1.6.0&#x27;</span>;</pre></div></div>
<div class="content"><div class='highlight'><pre> <span class="hljs-title class_">Backbone</span>.<span class="hljs-property">VERSION</span> = <span class="hljs-string">&#x27;1.6.1&#x27;</span>;</pre></div></div>

</li>

Expand Down Expand Up @@ -1480,7 +1480,9 @@ <h2 id="backbonemodel">Backbone.Model</h2>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (<span class="hljs-variable language_">this</span>.<span class="hljs-property">idAttribute</span> <span class="hljs-keyword">in</span> attrs) {
<span class="hljs-keyword">var</span> prevId = <span class="hljs-variable language_">this</span>.<span class="hljs-property">id</span>;
<span class="hljs-variable language_">this</span>.<span class="hljs-property">id</span> = <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">get</span>(<span class="hljs-variable language_">this</span>.<span class="hljs-property">idAttribute</span>);
<span class="hljs-variable language_">this</span>.<span class="hljs-title function_">trigger</span>(<span class="hljs-string">&#x27;changeId&#x27;</span>, <span class="hljs-variable language_">this</span>, prevId, options);
<span class="hljs-keyword">if</span> (<span class="hljs-variable language_">this</span>.<span class="hljs-property">id</span> !== prevId) {
<span class="hljs-variable language_">this</span>.<span class="hljs-title function_">trigger</span>(<span class="hljs-string">&#x27;changeId&#x27;</span>, <span class="hljs-variable language_">this</span>, prevId, options);
}
}</pre></div></div>

</li>
Expand Down
20 changes: 17 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
<div id="sidebar" class="interface">

<a class="toc_title" href="#">
Backbone.js <span class="version">(1.6.0)</span>
Backbone.js <span class="version">(1.6.1)</span>
</a>
<ul class="toc_section">
<li>&raquo; <a href="http://github.com/jashkenas/backbone">GitHub Repository</a></li>
Expand Down Expand Up @@ -609,11 +609,11 @@ <h2 id="downloads">

<table>
<tr>
<td><a class="punch" href="backbone.js">Development Version (1.6.0)</a></td>
<td><a class="punch" href="backbone.js">Development Version (1.6.1)</a></td>
<td class="text"><i>72kb, Full source, tons of comments</i></td>
</tr>
<tr>
<td><a class="punch" href="backbone-min.js">Production Version (1.6.0)</a></td>
<td><a class="punch" href="backbone-min.js">Production Version (1.6.1)</a></td>
<td class="text" style="line-height: 16px;">
<i>7.9kb, Packed and gzipped</i><br />
<small>(<a href="backbone-min.map">Source Map</a>)</small>
Expand Down Expand Up @@ -4554,6 +4554,20 @@ <h2 id="examples-tzigla">Tzigla</h2>

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

<b class="header" id="1.6.1">1.6.1</b> &mdash; <small><i>Apr. 1, 2025</i></small>
&mdash; <a href="https://github.com/jashkenas/backbone/compare/1.6.0...1.6.1">Diff</a>
&mdash; <a href="https://cdn.statically.io/gh/jashkenas/backbone/1.6.1/index.html">Docs</a>
<br />
<ul style="margin-top: 5px;">
<li>
Fixed a bug where the <tt>changeId</tt> event would sometimes fire even
though the id of a model did not change.
</li>
<li>
Several small changes in the test infrastructure.
</li>
</ul>

<b class="header" id="1.6.0">1.6.0</b> &mdash; <small><i>Feb. 5, 2024</i></small>
&mdash; <a href="https://github.com/jashkenas/backbone/compare/1.5.0...1.6.0">Diff</a>
&mdash; <a href="https://cdn.statically.io/gh/jashkenas/backbone/1.6.0/index.html">Docs</a>
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = function(config) {

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['PhantomJS'],
browsers: [],

// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
Expand Down
Loading