Skip to content

Tabs isLocal function was not compatible with HTML5 push state #564

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

Merged
merged 2 commits into from
Jan 19, 2012
Merged

Tabs isLocal function was not compatible with HTML5 push state #564

merged 2 commits into from
Jan 19, 2012

Conversation

arhea
Copy link
Contributor

@arhea arhea commented Jan 3, 2012

isLocal function was not compatible with HTML5 push state as the url could have changed since the page was loaded as in cases with Backbone.js. The currentPage variable was generate on page load and did not listen for changes in the URL. So I have changed it so it live checks the anchor against the window location. We now have it working in backbone.js

isLocal function was not compatible with HTML5 push state as the url
could have changed since the page was loaded as in cases with
Backbone.js
@scottgonzalez
Copy link
Member

Thanks. Please move rhash outside of isLocal since you're now regenerating the regex on every call. Also, please split the return statement into two lines again.

@arhea
Copy link
Contributor Author

arhea commented Jan 8, 2012

Has anyone else seen this behavior?

scottgonzalez added a commit that referenced this pull request Jan 19, 2012
Tabs isLocal function was not compatible with HTML5 push state
@scottgonzalez scottgonzalez merged commit 15e73e3 into jquery:master Jan 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants