Skip to content

Commit b8ceb31

Browse files
committed
Merge pull request tastejs#857 from chenglou/react-bb
[React] New react-backbone todomvc with fixes and React version bump
2 parents 904aa5a + bf18ccb commit b8ceb31

File tree

9 files changed

+13579
-8963
lines changed

9 files changed

+13579
-8963
lines changed

labs/architecture-examples/react-backbone/bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "todomvc-react-backbone",
33
"version": "0.0.0",
44
"dependencies": {
5-
"react": "~0.8.0",
6-
"todomvc-common": "~0.1.9",
7-
"backbone": "~1.1.0",
5+
"react": "~0.9.0",
6+
"backbone": "~1.1.2",
87
"backbone.localstorage": "~1.1.7",
9-
"jquery": "~2.0.3",
10-
"underscore": "~1.5.2"
8+
"jquery": "~2.1.0",
9+
"todomvc-common": "~0.1.9",
10+
"underscore": "~1.6.0"
1111
}
1212
}

labs/architecture-examples/react-backbone/bower_components/backbone/backbone.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Backbone.js 1.1.1
1+
// Backbone.js 1.1.2
22

33
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
44
// Backbone may be freely distributed under the MIT license.
@@ -17,9 +17,8 @@
1717

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

2423
// Finally, as a browser global.
2524
} else {
@@ -42,7 +41,7 @@
4241
var splice = array.splice;
4342

4443
// Current version of the library. Keep in sync with `package.json`.
45-
Backbone.VERSION = '1.1.1';
44+
Backbone.VERSION = '1.1.2';
4645

4746
// For Backbone's purposes, jQuery, Zepto, Ender, or My Library (kidding) owns
4847
// the `$` variable.
@@ -1293,7 +1292,7 @@
12931292
return optional ? match : '([^/?]+)';
12941293
})
12951294
.replace(splatParam, '([^?]*?)');
1296-
return new RegExp('^' + route + '(?:\\?(.*))?$');
1295+
return new RegExp('^' + route + '(?:\\?([\\s\\S]*))?$');
12971296
},
12981297

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

0 commit comments

Comments
 (0)