From 188a9e45ce9e3c6a709cd5cc4473b2971102790d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20=C5=A0er=C3=BD?= Date: Tue, 24 Jan 2017 14:05:05 +0100 Subject: [PATCH] - 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 --- client-side/history.ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-side/history.ajax.js b/client-side/history.ajax.js index 08a3c95..8fdc8e7 100644 --- a/client-side/history.ajax.js +++ b/client-side/history.ajax.js @@ -48,7 +48,7 @@ $.nette.ext('history', { var state = e.originalEvent.state || this.initialState; var initialPop = (!this.popped && initialUrl === state.href); this.popped = true; - if (initialPop || !e.state) { + if (initialPop || !e.originalEvent.state) { return; } if (this.cache && state.ui) {