From 530e9c38596d77aa02eae2e183f4324a2e991e19 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Tue, 28 Apr 2015 01:24:26 +0200 Subject: [PATCH] Clean code. --- src/_h5ai/client/js/inc/core/location.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/_h5ai/client/js/inc/core/location.js b/src/_h5ai/client/js/inc/core/location.js index 5a5c6e5e..cf5f581d 100644 --- a/src/_h5ai/client/js/inc/core/location.js +++ b/src/_h5ai/client/js/inc/core/location.js @@ -178,10 +178,10 @@ modulejs.define('core/location', ['_', 'modernizr', 'core/event', 'core/notify', if (history) { - window.onpopstate = function (e) { + window.onpopstate = function (ev) { - if (e.state && e.state.absHref) { - setLocation(e.state.absHref, true); + if (ev.state && ev.state.absHref) { + setLocation(ev.state.absHref, true); } }; }