cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [21/40] js commit: [OS X] Fixed plugin callbacks not being called
Date Wed, 20 Mar 2013 15:49:05 GMT
[OS X] Fixed plugin callbacks not being called


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/6df50c0e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/6df50c0e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/6df50c0e

Branch: refs/heads/cb2227
Commit: 6df50c0eedbc3eb3b9143e43c8ddb32bb664185c
Parents: d179d3b
Author: Shazron Abdullah <shazron@apache.org>
Authored: Wed Mar 6 17:17:24 2013 -0800
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Wed Mar 6 17:17:24 2013 -0800

----------------------------------------------------------------------
 lib/osx/exec.js |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/6df50c0e/lib/osx/exec.js
----------------------------------------------------------------------
diff --git a/lib/osx/exec.js b/lib/osx/exec.js
index facb1c4..0e9faf7 100644
--- a/lib/osx/exec.js
+++ b/lib/osx/exec.js
@@ -114,11 +114,9 @@ function OSXExec() {
 
 
 OSXExec.nativeCallback = function(callbackId, status, message, keepCallback) {
-    return (function() {
-        var success = status === 0 || status === 1;
-        var args = convertMessageToArgsNativeToJs(message);
-        cordova.callbackFromNative(callbackId, success, status, args, keepCallback);
-    });
+	var success = status === 0 || status === 1;
+	var args = convertMessageToArgsNativeToJs(message);
+	cordova.callbackFromNative(callbackId, success, status, args, keepCallback);
 };
 
 module.exports = OSXExec;


Mime
View raw message