Issue #194: Resolve flashes between screen, and enable setting of background color & optional loading dialog.

This commit is contained in:
Bryce Curtis
2011-08-11 16:21:22 -05:00
parent 4ecfbac586
commit 361a7aacc5
2 changed files with 82 additions and 32 deletions
+3
View File
@@ -367,6 +367,9 @@ PhoneGap.Channel.join(function() {
// Fire onDeviceReady event once all constructors have run and PhoneGap info has been
// received from native side, and any user defined initialization channels.
PhoneGap.Channel.join(function() {
// Let native code know we are inited on JS side
prompt("", "gap_init:");
PhoneGap.onDeviceReady.fire();
// Fire the onresume event, since first one happens before JavaScript is loaded