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 continuous reload loop when { hashChange: false } in IE <= 7 #1199

Merged
merged 1 commit into from
Apr 6, 2012
Merged

Fix continuous reload loop when { hashChange: false } in IE <= 7 #1199

merged 1 commit into from
Apr 6, 2012

Conversation

mostly-magic
Copy link
Contributor

Currently, when you call

Backbone.history.start({ pushState: true, hashChange: false })

in IE <= 7, it creates the iframe to track history, and then calls navigate. navigate changes the window.location because of the hashChange option, and the window reloads and the process starts all over again.

My solution is to completely bypass the iframe code when the option is set. There is no need to load the iframe code if not supporting the hashChange event.

@jashkenas
Copy link
Owner

Good point.

jashkenas added a commit that referenced this pull request Apr 6, 2012
Fix continuous reload loop when { hashChange: false } in IE <= 7
@jashkenas jashkenas merged commit f60e485 into jashkenas:master Apr 6, 2012
@deleteme
Copy link

Thank you for fixing this @mostly-magic. You saved me from having to debug this infinite redirect bug in ie7!

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.

3 participants