Skip to content
Closed
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
2 changes: 1 addition & 1 deletion shared/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = Backbone.Model.extend({
* Initialize the `ClientRouter` on the client-side.
*/
if (!isServer) {
var ClientRouter = this.options.ClientRouter || require(defaultRouterModule);
var ClientRouter = this.options.ClientRouter || this.modelUtils._requireAMD(defaultRouterModule);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main problem with the signature – array + callback vs string + return.

@purusho Did it work for you in 1.0.1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hah yer too quick, yeah, i did it really quickly and went "crap, this won't work..." i renamed this to be a work in progress and added a checkbox for the task to make this a callback. i'd be realllyyy surprised if this worked at all before. This will probably require more work to get things to work, and i need to setup a requirejs env to really test.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we need to think it through.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it was working on 1.0.1 with ClientRouter = require('app/router');.

I don't think PR is going to fix the issue


new ClientRouter({
app: this,
Expand Down