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

pushstate() and preventDefault() were not working on default route becau... #528

Merged
merged 1 commit into from Nov 7, 2013
Merged

pushstate() and preventDefault() were not working on default route becau... #528

merged 1 commit into from Nov 7, 2013

Conversation

marshallswain
Copy link
Member

Using hasOwnProperty() to prevent comparison of default route empty string "".

AKA. pushstate() now works for the default route.

Here is a fiddle demonstrating it's previous behavior:
http://jsfiddle.net/marshallswain/RdEax/4/

…cause curParams.route was returning an empty string. Using hasOwnProperty() fixes this.
@imjoshdean
Copy link
Contributor

Looks good. Merging, thanks!

imjoshdean added a commit that referenced this pull request Nov 7, 2013
pushstate() and preventDefault() were not working on default route becau...
@imjoshdean imjoshdean merged commit 75d5064 into canjs:master Nov 7, 2013
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