mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Fix bug when not doing cast - temp isn't defined.
This commit is contained in:
parent
1c5aa6cd00
commit
afc7e605ff
@ -81,8 +81,11 @@ public class PluginResult {
|
||||
StringBuffer buf = new StringBuffer("");
|
||||
if (cast != null) {
|
||||
buf.append("var temp = "+cast+"("+this.getJSONString() + ");\n");
|
||||
buf.append("PhoneGap.callbackSuccess('"+callbackId+"',temp);");
|
||||
}
|
||||
else {
|
||||
buf.append("PhoneGap.callbackSuccess('"+callbackId+"',"+this.getJSONString()+");");
|
||||
}
|
||||
buf.append("PhoneGap.callbackSuccess('"+callbackId+"', temp );");
|
||||
return buf.toString();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user