beedesk / jQTouch

jQT + actively maintained + exclusive features (iPad layout, iscroll, tons of css enhancements, page events, param passing between pages, radio button, grid, mail, improved page history management etc.)
http://bit.ly/beedesk-jqt
MIT License
72 stars 13 forks source link

window.history.replaceState Error in Safari #19

Closed matdar closed 13 years ago

matdar commented 13 years ago

Running the iPad demo on Safari 4.0.4 results in an error in the console:

TypeError: Result of expression 'window.history.replaceState' [undefined] is not a function.

thomasyip commented 13 years ago

Thanks for reporting. The method exists for 5.0+. I will need to think of an workaround.

thomasyip commented 13 years ago

I worked around the problem by checking for existence of window.history. Hope it get you unblocked.