Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 15th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jQuery Mobile, Style issue
  2. function loadView(id, trans, callback) {
  3.     if(current_view != id)
  4.     {  
  5.         id = $(id);
  6.         $.mobile.changePage(id, {transition: trans} );
  7.         current_view = id;
  8.         id.die('pageshow').live('pageshow', function(e) {
  9.             if(callback) callback(e);
  10.         });
  11.     }
  12. };