Skip to content

Commit

Permalink
Merge pull request #499 from alexindigo/amd_cleanup
Browse files Browse the repository at this point in the history
Cleaned up unused leftovers. Made it more server friendly.
  • Loading branch information
saponifi3d committed Oct 27, 2015
2 parents 642e5e6 + e88f3f6 commit ab96e44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
* we need to pretend that this code is pure commonjs
* means no AMD-style require calls
*/
var requireAMD = require;

var _ = require('underscore'),
Backbone = require('backbone'),
BaseRouter = require('../shared/base/router'),
BaseView = require('../shared/base/view'),
$ = (typeof window !== 'undefined' && window.$) || require('jquery'),
isServer = (typeof window === 'undefined'),
extractParamNamesRe = /:(\w+)/g,
plusRe = /\+/g,
firstRender = true,
defaultRootPath = '';

Backbone.$ = $;
if (!isServer) {
Backbone.$ = window.$ || require('jquery');
}

module.exports = ClientRouter;

Expand Down

0 comments on commit ab96e44

Please sign in to comment.