For some reason have to check typeof?

This commit is contained in:
filmaj 2010-08-24 14:59:02 -07:00
parent 8683667041
commit 745aa7201c

View File

@ -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