Skip to content

Commit 9882c05

Browse files
committed
Skip no pjax state error
1 parent b3a48e5 commit 9882c05

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

jquery.pjax.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,6 @@ function onPjaxPopstate(event) {
395395
// Cache current container before replacement and inform the
396396
// cache which direction the history shifted.
397397
cachePop(direction, pjax.state.id, container.clone().contents())
398-
} else {
399-
// Unknown case: If you happen to hit it, please open an issue on
400-
// https://github.com/defunkt/jquery-pjax/issues?sort=updated&state=open
401-
// with steps to reproduce.
402-
throw "missing initial pjax state"
403398
}
404399

405400
var popstateEvent = $.Event('pjax:popstate', {

0 commit comments

Comments
 (0)