Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actually export the router when used as CommonJS module #44

Merged
merged 1 commit into from
Oct 13, 2014
Merged

actually export the router when used as CommonJS module #44

merged 1 commit into from
Oct 13, 2014

Conversation

xMartin
Copy link
Contributor

@xMartin xMartin commented Oct 13, 2014

When using backbone.subroute with browserify requiring it returns an empty object. I guess I could just use the export of the backbone module after requiring backbone.subroute but that is a bit ugly.

I want

var SubRouter = require('backbone.subroute');
var foo = SubRouter.extend({
   ...

@geekdave
Copy link
Contributor

Looks good to me.

geekdave added a commit that referenced this pull request Oct 13, 2014
actually export the router when used as CommonJS module
@geekdave geekdave merged commit 08c02cf into BackboneSubroute:master Oct 13, 2014
@geekdave
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants