mirror of
https://github.com/apache/cordova-android.git
synced 2025-04-02 12:52:51 +08:00
Check to make sure result was returned to eliminate parse warning messages.
This commit is contained in:
parent
5cd25316fa
commit
9c2e4cfd9c
@ -289,7 +289,7 @@ PhoneGap.execAsync = function(success, fail, clazz, action, args) {
|
||||
var r = PluginManager.exec(clazz, action, callbackId, this.stringify(args), true);
|
||||
|
||||
// If a result was returned
|
||||
if (typeof r == "string") {
|
||||
if ((typeof r == "string") && (r.length > 0)) {
|
||||
eval("var v="+r+";");
|
||||
|
||||
// If status is OK, then return value back to caller
|
||||
|
Loading…
x
Reference in New Issue
Block a user