fix a bug in Ox.URL
This commit is contained in:
parent
4ea2033379
commit
aefc3e3a93
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue