incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [1/28] git commit: Fixing playbook plugin manager
Date Tue, 03 Jan 2012 20:22:58 GMT
Updated Branches:
  refs/heads/master 8caf6193b -> a96e4d9ef


Fixing playbook plugin manager

Signed-off-by: Gord Tanner <gtanner@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/commit/a96e4d9e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/tree/a96e4d9e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/diff/a96e4d9e

Branch: refs/heads/master
Commit: a96e4d9ef39b00eb2cb099c6058d4ebae527d6b4
Parents: 1bba38a
Author: Jeffrey Heifetz <jheifetz@gmail.com>
Authored: Tue Dec 20 15:00:51 2011 -0500
Committer: Gord Tanner <gtanner@gmail.com>
Committed: Wed Dec 21 10:35:31 2011 -0500

----------------------------------------------------------------------
 javascript/playbook/playBookPluginManager.js |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/a96e4d9e/javascript/playbook/playBookPluginManager.js
----------------------------------------------------------------------
diff --git a/javascript/playbook/playBookPluginManager.js b/javascript/playbook/playBookPluginManager.js
index 94c783b..8752f2d 100644
--- a/javascript/playbook/playBookPluginManager.js
+++ b/javascript/playbook/playBookPluginManager.js
@@ -17,7 +17,7 @@ phonegap.PluginManager = (function (webworksPluginManager) {
         retInvalidAction = { "status" : PhoneGap.callbackStatus.INVALID_ACTION, "message"
: "Action not found" },
         retAsyncCall = { "status" : PhoneGap.callbackStatus.NO_RESULT, "message" : "WebWorks
Is On It" },
         cameraAPI = {
-            execute: function (action, args, win, fail) {
+            execute: function (webWorksResult, action, args, win, fail) {
                 switch (action) {
                 case 'takePicture':
                     blackberry.media.camera.takePicture(win, fail, fail);
@@ -30,11 +30,14 @@ phonegap.PluginManager = (function (webworksPluginManager) {
             execute: function (webWorksResult, action, args, win, fail) {
                 if (action === 'getDeviceInfo') {
                     return {"status" : PhoneGap.callbackStatus.OK,
-                            "message" : {"version" : blackberry.system.softwareVersion,
-                            "name" : blackberry.system.model,
-                            "uuid" : blackberry.identity.PIN,
-                            "platform" : "PlayBook",
-                            "phonegap" : "1.3.0"}};
+                            "message" : {
+                                "version" : blackberry.system.softwareVersion,
+                                "name" : blackberry.system.model,
+                                "uuid" : blackberry.identity.PIN,
+                                "platform" : "PlayBook",
+                                "phonegap" : "1.3.0"
+                            }
+                    };
                 }
                 return retInvalidAction;
             }
@@ -51,7 +54,7 @@ phonegap.PluginManager = (function (webworksPluginManager) {
             }
         },
         mediaAPI = {
-            execute: function (action, args, win, fail) {
+            execute: function (webWorksResult, action, args, win, fail) {
                 if (!args.length) {
                     return {"status" : 9, "message" : "Media Object id was not sent in arguments"};
                 }
@@ -153,7 +156,7 @@ phonegap.PluginManager = (function (webworksPluginManager) {
             }
         },
         mediaCaptureAPI = {
-            execute: function (action, args, win, fail) {
+            execute: function (webWorksResult, action, args, win, fail) {
                 var limit = args[0],
                     pictureFiles = [],
                     captureMethod;


Mime
View raw message