diff --git a/framework/assets/js/phonegap.js.base b/framework/assets/js/phonegap.js.base index 25b25e68..09ece30f 100755 --- a/framework/assets/js/phonegap.js.base +++ b/framework/assets/js/phonegap.js.base @@ -152,7 +152,7 @@ PhoneGap.onNativeReady = new PhoneGap.Channel(); // _nativeReady is global variable that the native side can set // to signify that the native code is ready. It is a global since // it may be called before any PhoneGap JS is ready. -if (_nativeReady) { PhoneGap.onNativeReady.fire(); } +if (typeof _nativeReady != "undefined") { PhoneGap.onNativeReady.fire(); } /** * onDeviceReady is fired only after both onDOMContentLoaded and