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

CommandRouter should become router independent. #4

Open
PaulTondeur opened this issue Nov 8, 2013 · 0 comments
Open

CommandRouter should become router independent. #4

PaulTondeur opened this issue Nov 8, 2013 · 0 comments

Comments

@PaulTondeur
Copy link
Member

Ideally it should be independent of the router, but can be used to extend a router with or do something completely different. The name should also change in order to reflect these changes.

The following should be possible:

var MyRouter = Backbone.Router.extend(Backbone.CommandRouter).extend({
    //custom implementation
});

But also

var MySomething = Backbone.CommandRouter.extend({
    //custom implementation
});
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

No branches or pull requests

1 participant