From 6af5e2e2e1536e15b30ec3032ed134bc4e0d8207 Mon Sep 17 00:00:00 2001 From: macdonst Date: Sat, 27 Aug 2011 04:04:57 +0800 Subject: [PATCH] Fix for Issue #210: devready event never fires if we can't get network connection info --- framework/assets/js/network.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/assets/js/network.js b/framework/assets/js/network.js index f71bad50..f174b6da 100755 --- a/framework/assets/js/network.js +++ b/framework/assets/js/network.js @@ -47,6 +47,12 @@ var Connection = function() { } }, function(e) { + // If we can't get the network info we should still tell PhoneGap + // to fire the deviceready event. + if (me._firstRun) { + me._firstRun = false; + PhoneGap.onPhoneGapConnectionReady.fire(); + } console.log("Error initializing Network Connection: " + e); }); };