cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/5] cordova-browser git commit: fix lint error
Date Tue, 20 Oct 2015 00:00:57 GMT
fix lint error


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

Branch: refs/heads/master
Commit: 22158b234480a36a12686ce369af7fa62d587ea5
Parents: 826d18d
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue Sep 15 17:10:02 2015 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue Sep 15 17:10:02 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-browser/blob/22158b23/cordova-js-src/exec.js
----------------------------------------------------------------------
diff --git a/cordova-js-src/exec.js b/cordova-js-src/exec.js
index 58b7004..2cc0328 100644
--- a/cordova-js-src/exec.js
+++ b/cordova-js-src/exec.js
@@ -105,7 +105,11 @@ module.exports = function (success, fail, service, action, args) {
             console.log("Exception calling native with command :: " + service + " :: " +
action  + " ::exception=" + e);
         }
     } else {
+
         console.log("Error: exec proxy not found for :: " + service + " :: " + action);
-        fail && fail("Missing Command Error");
+        
+        if(typeof fail === "function" ) {
+            fail("Missing Command Error");
+        }
     }
-};
\ No newline at end of file
+};


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


Mime
View raw message