Going back in jquery mobile will trigger a $.mobile.changePage() with the location.hash as explained in the jquery mobile docs.
I wan’t to be able to do a history.go(-N) without anything happening except the history of the browser being shortened by the last N elements.
So I wish to avoid the animation of $.mobile.changePage() that will hide and show a different page.
Is it possible ?, and how can I achieve this ?
This what I did, but I’m not happy at all with it. But it does the trick.
The timeout is here to try to re-enable the normal behavior after the real
hashchangeevent is triggered.I would be really happy if someone could have a better solution.