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

Create iframe conditional on options and hashchange and pushstate support #10

Merged
merged 1 commit into from
Feb 27, 2014
Merged

Create iframe conditional on options and hashchange and pushstate support #10

merged 1 commit into from
Feb 27, 2014

Conversation

wyuenho
Copy link

@wyuenho wyuenho commented Feb 21, 2014

Tests passed on IE6 - 11, and the latest Chrome, Firefox and Safari.

// Proxy an iframe to handle location events if the browser doesn't
// support the `hashchange` event, HTML5 history, or the user wants
// `hashChange` but not `pushState`.
if (!_.hasHashChange && _.wantsHashChange &&
Copy link
Owner

Choose a reason for hiding this comment

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

80 chars isn't a hard limit. I think it's cleaner all on one line.

// Proxy an iframe to handle location events if the browser doesn't
// support the `hashchange` event, HTML5 history, or the user wants
// `hashChange` but not `pushState`.
if (!_.hasHashChange && _.wantsHashChange && (!_.wantsPushState || !_.hasPushState)) {
Copy link

Choose a reason for hiding this comment

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

Typos here _.hasHashChange -> this._hasHashChange & friends.

@wyuenho
Copy link
Author

wyuenho commented Feb 24, 2014

@akre54 how's this PR look now?

akre54 added a commit that referenced this pull request Feb 27, 2014
Create iframe conditional on options and hashchange and pushstate support
@akre54 akre54 merged commit 16b6f1e into akre54:history-native-hooks Feb 27, 2014
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.

4 participants