mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
For some reason have to check typeof?
This commit is contained in:
parent
8683667041
commit
745aa7201c
@ -152,7 +152,7 @@ PhoneGap.onNativeReady = new PhoneGap.Channel();
|
|||||||
// _nativeReady is global variable that the native side can set
|
// _nativeReady is global variable that the native side can set
|
||||||
// to signify that the native code is ready. It is a global since
|
// to signify that the native code is ready. It is a global since
|
||||||
// it may be called before any PhoneGap JS is ready.
|
// 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
|
* onDeviceReady is fired only after both onDOMContentLoaded and
|
||||||
|
Loading…
Reference in New Issue
Block a user