From 45d75524c9205943aac1a0ef75a568fdee273b2e Mon Sep 17 00:00:00 2001 From: Fil Maj Date: Wed, 25 Jan 2012 15:31:09 -0800 Subject: [PATCH] Changed JavaScript invoked from PluginResult native code to use new modular JS approach --- framework/src/org/apache/cordova/api/PluginResult.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/src/org/apache/cordova/api/PluginResult.java b/framework/src/org/apache/cordova/api/PluginResult.java index 89ee1b5f..3a12491f 100755 --- a/framework/src/org/apache/cordova/api/PluginResult.java +++ b/framework/src/org/apache/cordova/api/PluginResult.java @@ -84,11 +84,11 @@ public class PluginResult { } public String toSuccessCallbackString(String callbackId) { - return "Cordova.callbackSuccess('"+callbackId+"',"+this.getJSONString()+");"; + return "require('cordova').callbackSuccess('"+callbackId+"',"+this.getJSONString()+");"; } public String toErrorCallbackString(String callbackId) { - return "Cordova.callbackError('"+callbackId+"', " + this.getJSONString()+ ");"; + return "require('cordova').callbackError('"+callbackId+"', " + this.getJSONString()+ ");"; } public static String[] StatusMessages = new String[] {