cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmo...@apache.org
Subject android commit: CB-2530: Update callbackFromNative syntax to args
Date Mon, 25 Feb 2013 18:33:34 GMT
Updated Branches:
  refs/heads/master e791f29ce -> 62421ee49


CB-2530: Update callbackFromNative syntax to args

New callbackFromNative syntax expects an array of arguments instead of a
single message.


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/62421ee4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/62421ee4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/62421ee4

Branch: refs/heads/master
Commit: 62421ee49df6deab43748e50e129613cb089a47e
Parents: e791f29
Author: Michal Mocny <mmocny@gmail.com>
Authored: Mon Feb 25 13:28:26 2013 -0500
Committer: Michal Mocny <mmocny@gmail.com>
Committed: Mon Feb 25 13:28:26 2013 -0500

----------------------------------------------------------------------
 .../org/apache/cordova/NativeToJsMessageQueue.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/62421ee4/framework/src/org/apache/cordova/NativeToJsMessageQueue.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/NativeToJsMessageQueue.java b/framework/src/org/apache/cordova/NativeToJsMessageQueue.java
index 83e1778..829f322 100755
--- a/framework/src/org/apache/cordova/NativeToJsMessageQueue.java
+++ b/framework/src/org/apache/cordova/NativeToJsMessageQueue.java
@@ -473,9 +473,9 @@ public class NativeToJsMessageQueue {
                   .append(success)
                   .append(",")
                   .append(status)
-                  .append(",")
+                  .append(",[")
                   .append(pluginResult.getMessage())
-                  .append(",")
+                  .append("],")
                   .append(pluginResult.getKeepCallback())
                   .append(");");
             }


Mime
View raw message