Skip to content

Conversation

@zipper
Copy link
Owner

@zipper zipper commented Jan 22, 2018

After merging vojtech-dobes#33, the popstate history stopped working at all. I believe the reason is that e.event is always undefined on this line. e is jQuery Event Object, which does not contain property event. The proposed and linked solution on stack overflow however uses native JS event. Therefore, the correct condition should be using e.originalEvent.state:

...
if (initialPop || !e.originalEvent.state) {
...

…nt Object, there is no `state` property defined, we need to use `e.originalEvent.state` instead
@zipper zipper merged commit e2022aa into master Jan 22, 2018
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.

2 participants