You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/11/28 19:16:24 UTC

[46/50] git commit: Fixes #40: undefined not a function when adding ios (would also apply to adding BlackBerry).

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 <ma...@gmail.com>
Authored: Fri Oct 5 09:23:57 2012 -0700
Committer: Fil Maj <ma...@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;
             }