Found uncompatibility with jQuery 1.9.*

Found uncompatibility with jQuery 1.9.*

If you want to fire a function after a page was loaded, jQuery Mobile recommends using jQuery's "live" function instead of jQuery's "ready" function - in order to make sure that the function is triggered both when loading a page via or without Ajax.

E.g.

  1.        
    $( '#aboutPage' ).live( 'pageinit',function(event){
    alert( 'This page was just enhanced by jQuery Mobile!' );
    });

See jQuery Mobile API:

http://api.jquerymobile.com/pageinit/
http://api.jquerymobile.com/pagecreate/

The bug: jQuery 1.9.* does not have the "live" function anymore! I did not find anything in the jQuery Changelogs, but I searched both the uncompressed and the compressed versions of jQuery 1.9.0 and 1.9.1, and there is no "live" function.

Any workarounds for catching the "pageinit" event?

Edit: FYI: Trying to use the above code, which was copied from the API site, the browser logs the error "live is not a function in 'path/to/jquery.js'".