From 315b5a59b3d1dc74de29bbd3b4122e0a7c577548 Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Tue, 7 Jun 2011 14:18:18 -0500 Subject: [PATCH] Set PhoneGap.UsePolling flag based upon result from CallbackServer. --- framework/assets/js/phonegap.js.base | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/assets/js/phonegap.js.base b/framework/assets/js/phonegap.js.base index 5d06bf99..e48fbf55 100755 --- a/framework/assets/js/phonegap.js.base +++ b/framework/assets/js/phonegap.js.base @@ -344,10 +344,13 @@ PhoneGap.Channel.join(function() { } else { var polling = prompt("usePolling", "gap_callbackServer:"); + PhoneGap.UsePolling = polling; if (polling == "true") { + PhoneGap.UsePolling = true; PhoneGap.JSCallbackPolling(); } else { + PhoneGap.UsePolling = false; PhoneGap.JSCallback(); } }