Skip to content

Commit

Permalink
Backbone: Update Backbone, jQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
passy committed Apr 23, 2014
1 parent 35fe247 commit 6533ae6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -17,9 +17,8 @@

// Next for Node.js or CommonJS. jQuery may not be needed as a module.
} else if (typeof exports !== 'undefined') {
var _ = require('underscore'), $;
try { $ = require('jquery'); } catch(e) {}
factory(root, exports, _, $);
var _ = require('underscore');
factory(root, exports, _);

// Finally, as a browser global.
} else {
Expand All @@ -42,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.
Expand Down Expand Up @@ -1293,7 +1292,7 @@
return optional ? match : '([^/?]+)';
})
.replace(splatParam, '([^?]*?)');
return new RegExp('^' + route + '(?:\\?(.*))?$');
return new RegExp('^' + route + '(?:\\?([\\s\\S]*))?$');
},

// Given a route, and a URL fragment that it matches, return the array of
Expand Down Expand Up @@ -1450,7 +1449,7 @@
// but possibly useful for unit testing Routers.
stop: function() {
Backbone.$(window).off('popstate', this.checkUrl).off('hashchange', this.checkUrl);
clearInterval(this._checkUrlInterval);
if (this._checkUrlInterval) clearInterval(this._checkUrlInterval);
History.started = false;
},

Expand Down
Empty file.

0 comments on commit 6533ae6

Please sign in to comment.