Commit ea3e4660 authored by Sven Franck's avatar Sven Franck

undo changes

parent 4fbd0d7d
......@@ -4475,18 +4475,24 @@ $.widget( "mobile.page", {
},
go: function( steps ) {
console.log("GOOO")
//if hashlistening is enabled use native history method
if ( $.mobile.hashListeningEnabled ) {
console.log("wtf")
console.log(steps)
window.history.go( steps );
} else {
console.log("JQM handle");
//we are not listening to the hash so handle history internally
var activeIndex = $.mobile.navigate.history.activeIndex,
index = activeIndex + parseInt( steps, 10 ),
url = $.mobile.navigate.history.stack[ index ].url,
direction = ( steps >= 1 )? "forward" : "back";
console.log(activeIndex)
console.log(index)
console.log(url)
console.log(direction)
//update the history object
$.mobile.navigate.history.activeIndex = index;
$.mobile.navigate.history.previousIndex = activeIndex;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment