Skip to content

Commit 188a9e4

Browse files
committed
- fixing condition in popstate event handler; since e is jQuery Event Object, there is no state property defined, we need to use e.originalEvent.state instead
1 parent b5946b6 commit 188a9e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client-side/history.ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $.nette.ext('history', {
4848
var state = e.originalEvent.state || this.initialState;
4949
var initialPop = (!this.popped && initialUrl === state.href);
5050
this.popped = true;
51-
if (initialPop || !e.state) {
51+
if (initialPop || !e.originalEvent.state) {
5252
return;
5353
}
5454
if (this.cache && state.ui) {

0 commit comments

Comments
 (0)