autoInitialize Option Removed in 1.0a4?
Hi,
To get1.0a3 working on webOS with Phonegap, I would set jQuery.mobile.autoInitialize = false; in a "mobileinit" event handler, and then call jQuery.mobile.initializePage(); and jQuery.mobile.autoInitialize = true; in a "deviceready" event handler. If I did not do this, I would get an error that _trigger() couldn't be called on undefined. This error did not appear on iOS, so apparently it was only an issue with webOS.
In 1.0a4, the relevant lines that supported the autoInitialize option seem to have been removed. They were the following lines:
if($.mobile.autoInitialize){
$($.mobile.initializePage);
}
It was an easy fix to copy the lines from 1.0a3 over to 1.0a4 to get things working again, but I'm wondering why this was removed? For all those using webOS, phonegap, and jQuery mobile, this just adds one more modification we need to make to get things working (in addition to the dynamicBaseTag:false workaround). Also, the addition of dataType: "html" to the ajax call in 1.0a4 still appears to be needed for webOS. (without it, I get the following error:
Uncaught TypeError: Object #<a Document> has no method 'match', shared/jquery/jquery-1.5.1.js:869 )
Thanks!
-Ethan