Closed tonovotny closed 9 years ago
Yes, I struggled with this problem in previous versions of Safari, I found a hack. Now apparently the hack does not work. :(
I'll think about it. But I recommend to use the method window.addEventListener
:
window.addEventListener('popstate', function() {
console.log('tomas');
}, false);
The bug has been corrected, test the changes. Thank you!
Yep! Fixed ;)
Thank you for the changes and all the work!
Tomas
Hi, window.onpopstate handler function is fired twice in Safari 8.0. Once by browser and once by history.js code.
Simple test in console:
I will try to elaborate this further..
Tomas