cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [46/50] git commit: Fixes #40: undefined not a function when adding ios (would also apply to adding BlackBerry).
Date Wed, 28 Nov 2012 18:16:24 GMT
Fixes #40: undefined not a function when adding ios (would also apply to adding BlackBerry).


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

Branch: refs/heads/master
Commit: edcfa6176cc76da2e80cc9e9c403af200eaead37
Parents: 82c8c56
Author: Fil Maj <maj.fil@gmail.com>
Authored: Fri Oct 5 09:23:57 2012 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Fri Oct 5 09:23:57 2012 -0700

----------------------------------------------------------------------
 src/platform.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/edcfa617/src/platform.js
----------------------------------------------------------------------
diff --git a/src/platform.js b/src/platform.js
index d69f7b2..d4bef45 100644
--- a/src/platform.js
+++ b/src/platform.js
@@ -69,14 +69,14 @@ module.exports = function platform(command, target, callback) {
                     var ios = new ios_parser(output);
                     ios.update_project(cfg, function() {
                         hooks.fire('after_platform_add');
-                        callback();
+                        if (callback) callback();
                     });
                     break;
                 case 'blackberry':
                     var bb = new blackberry_parser(output);
                     bb.update_project(cfg, function() {
                         hooks.fire('after_platform_add');
-                        callback();
+                        if (callback) callback();
                     });
                     break;
             }


Mime
View raw message