Add back JSCallback to deviceready event

This commit is contained in:
Dave Johnson
2010-08-23 17:14:08 -07:00
parent 5e46fad0e9
commit 9f1730ae47
2 changed files with 435 additions and 172 deletions
+4
View File
@@ -160,6 +160,10 @@ if (_nativeReady) { PhoneGap.onNativeReady.fire(); }
*/
PhoneGap.onDeviceReady = new PhoneGap.Channel();
PhoneGap.onDeviceReady.subscribeOnce(function() {
PhoneGap.JSCallback();
});
PhoneGap.Channel.join(function() {
PhoneGap.onDeviceReady.fire();
}, [ PhoneGap.onDOMContentLoaded, PhoneGap.onNativeReady ]);