Skip to content

Commit

Permalink
[fix] Update prompt.addProperties() to use new callback method sign…
Browse files Browse the repository at this point in the history
…ature for readline
  • Loading branch information
indexzero committed Apr 14, 2011
1 parent a8b187b commit 2f3fb11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/jitsu/prompt.js
Expand Up @@ -183,7 +183,11 @@ prompt.addProperties = function (obj, properties, callback) {
return callback(obj);
}

prompt.get(properties, function (results) {
prompt.get(properties, function (err, results) {
if (!results) {
return callback(obj);
}

Object.keys(results).forEach(function (key) {
obj[key] = results[key];
callback(obj);
Expand Down

0 comments on commit 2f3fb11

Please sign in to comment.