cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/3] cordova-windows git commit: Added check for undefined
Date Fri, 13 Mar 2015 18:33:35 GMT
Added check for undefined

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

Branch: refs/heads/master
Commit: abc7715fd4765d8c25a1d0244dc9e179858a3705
Parents: 1e4b533
Author: Ray Chang <CJRChang@users.noreply.github.com>
Authored: Thu Mar 12 17:01:51 2015 +1000
Committer: Ray Chang <CJRChang@users.noreply.github.com>
Committed: Thu Mar 12 17:01:51 2015 +1000

----------------------------------------------------------------------
 cordova-js-src/exec.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/abc7715f/cordova-js-src/exec.js
----------------------------------------------------------------------
diff --git a/cordova-js-src/exec.js b/cordova-js-src/exec.js
index d7f0c0f..6b8a904 100644
--- a/cordova-js-src/exec.js
+++ b/cordova-js-src/exec.js
@@ -61,7 +61,7 @@ module.exports = function (success, fail, service, action, args) {
             onSuccess = function (result, callbackOptions) {
                 callbackOptions = callbackOptions || {};
                 var callbackStatus;
-                if (callbackOptions.status !== null) {
+                if (callbackOptions.status !== null && callbackOptions.status !==
undefined) {
                     callbackStatus = callbackOptions.status;
                 }
                 else {
@@ -77,7 +77,7 @@ module.exports = function (success, fail, service, action, args) {
             onError = function (err, callbackOptions) {
                 callbackOptions = callbackOptions || {};
                 var callbackStatus;
-                if (callbackOptions.status !== null) {
+                if (callbackOptions.status !== null && callbackOptions.status !==
undefined) {
                     callbackStatus = callbackOptions.status;
                 }
                 else {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message