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

Changing can.Control.route to match pushstate (#612) #700

Merged
merged 4 commits into from Jan 23, 2014

Conversation

andykant
Copy link
Contributor

When using can.Control.route with pushstate.js the events never fire because the selectors don't match those in pushstate.js. This is because before a route is added to can.route.routes it is stripped of any preceding forward slash. I've added the same check on line 9. This causes routes to match and controller events fire. This shouldn't affect routes using #! since those routes won't start with a forward slash.

See #612 for more information.

andykant added a commit that referenced this pull request Jan 23, 2014
Changing can.Control.route to match pushstate (#612)
@andykant andykant merged commit 6165fd9 into master Jan 23, 2014
@andykant andykant deleted the can-control-route_selectors branch January 23, 2014 22:57
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.

None yet

2 participants