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

Fix callback parameter mutation #66

Merged
merged 1 commit into from
Feb 21, 2018

Conversation

tornqvist
Copy link
Member

Reusing the same callback for two routes would overwrite cb.route each time resulting in a false match for the first route.

Though arguably an edge case, mutating parameters does make for unexpected behavior.

Copy link
Member

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

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

LGTM

@yoshuawuyts yoshuawuyts merged commit ff25c87 into choojs:master Feb 21, 2018
@tornqvist tornqvist deleted the fix-callback-mutation branch February 21, 2018 13:12
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