fix a bug in Ox.URL

This commit is contained in:
rolux 2013-03-02 16:23:19 +05:30
parent 4ea2033379
commit aefc3e3a93

View file

@ -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,