From ea8dc735258ffc8efad02e7d48472fb0de5494f5 Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Tue, 24 Aug 2010 15:03:38 -0500 Subject: [PATCH] Don't need to fire native ready event during constructor. It gets fired when page has been loaded. --- framework/src/com/phonegap/DroidGap.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/framework/src/com/phonegap/DroidGap.java b/framework/src/com/phonegap/DroidGap.java index cd9bdb83..b3150780 100755 --- a/framework/src/com/phonegap/DroidGap.java +++ b/framework/src/com/phonegap/DroidGap.java @@ -134,11 +134,6 @@ public class DroidGap extends Activity { root.addView(appView); - // Try firing the onNativeReady event in JS. If it fails because the JS is - // not loaded yet then just set a flag so that the onNativeReady can be fired - // from the JS side when the JS gets to that code. - appView.loadUrl("javascript:try{PhoneGap.onNativeReady.fire();}catch(e){_nativeReady = true;}"); - setContentView(root); }