1.1.1 Same page transition bug?

1.1.1 Same page transition bug?

I was trying to implement same page transition with 1.1.1, using:

$.mobile.changePage( $.mobile.activePage, { "allowSamePageTransition": true,"fromPage":$.mobile.activePage } );
        
however, after the transition the page turned blank (white). With a bit of debugging I found line 2297:

if( $from){
      cleanFrom();
}

which of course cleans $to in this case as well.

changed to:
if( $from && ($from!==$to) ){
      cleanFrom();
}

and this seems to fix it.