Guest User

Untitled

a guest
Nov 24th, 2014
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $.mobile.back = function() {
  2.         var nav = window.navigator;
  3.  
  4.         // if the setting is on and the navigator object is
  5.         // available use the phonegap navigation capability
  6.         if( this.phonegapNavigationEnabled &&
  7.             nav &&
  8.             nav.app &&
  9.             nav.app.backHistory ){
  10.             nav.app.backHistory();
  11.         } else {
  12.             window.history.back();
  13.         }
  14.     };
Advertisement
Add Comment
Please, Sign In to add comment