Skip to content

Commit b92f80e

Browse files
committed
Fix for issue #309
1 parent 9930024 commit b92f80e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.pjax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ function onPjaxPopstate(event) {
403403

404404
// If popping back to the same state, just skip.
405405
// Could be clicking back from hashchange rather than a pushState.
406-
if (pjax.state.id === state.id) return
406+
if (pjax.state && pjax.state.id === state.id) return
407407

408408
var container = $(state.container)
409409
if (container.length) {

0 commit comments

Comments
 (0)