From 893fef579e66ea43bb358e02deca679fd6a7a138 Mon Sep 17 00:00:00 2001 From: Ali Sarrafi Date: Wed, 19 Dec 2012 15:54:20 +0100 Subject: [PATCH] Fixed the JSNativeUI issue with iOS6. --- libs/Wormhole/jslib/phonegap-1.2.0.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/Wormhole/jslib/phonegap-1.2.0.js b/libs/Wormhole/jslib/phonegap-1.2.0.js index 91791484d..a69d7db86 100644 --- a/libs/Wormhole/jslib/phonegap-1.2.0.js +++ b/libs/Wormhole/jslib/phonegap-1.2.0.js @@ -534,10 +534,15 @@ PhoneGap.onDeviceReady = new PhoneGap.Channel('onDeviceReady'); // bug that caused onDeviceReady to fire too early. PhoneGap.deviceReadyChannelsArray = [ PhoneGap.onPhoneGapReady, - PhoneGap.onPhoneGapInfoReady, + //PhoneGap.onPhoneGapInfoReady, PhoneGap.onPhoneGapConnectionReady, PhoneGap.onNativeReady]; +// This is hack to overcome the problems with iOs6 devices, should be removed when that is fixed +if(!mosync.isIOS) +{ + PhoneGap.deviceReadyChannelsArray.push(PhoneGap.onPhoneGapInfoReady); +} // Hashtable of user defined channels that must also fire before "deviceready" is fired PhoneGap.deviceReadyChannelsMap = {};