From aefc3e3a93db3fe6be87c2e8e419a6e80829b90d Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 2 Mar 2013 16:23:19 +0530 Subject: [PATCH] fix a bug in Ox.URL --- source/Ox.UI/js/Core/URL.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Core/URL.js b/source/Ox.UI/js/Core/URL.js index 150b64b6..d437ad38 100644 --- a/source/Ox.UI/js/Core/URL.js +++ b/source/Ox.UI/js/Core/URL.js @@ -394,12 +394,12 @@ Ox.URL = function(options) { self.previousTitle = ''; self.previousURL = ''; - window.onpopstate = function() { + window.addEventListener('popstate', function() { self.previousTitle = document.title; self.previousURL = document.location.pathname + document.location.search + document.location.hash; - }; + }); function constructCondition(condition) { var key = condition.key == '*' ? '' : condition.key,