Permalink
Browse files

Fixes #40: undefined not a function when adding ios (would also apply…

… to adding BlackBerry).
  • Loading branch information...
1 parent 82c8c56 commit edcfa6176cc76da2e80cc9e9c403af200eaead37 @filmaj committed Oct 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/platform.js
View
@@ -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;
}

0 comments on commit edcfa61

Please sign in to comment.