Skip to content

Commit

Permalink
Bugfix: Empty defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
rottmann committed Dec 22, 2014
1 parent 48ebca2 commit 3ba232a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function createDoc(options) {
var apidocPath = path.join(__dirname, '../');
var packageInfo;

_.defaults(options, defaults);
options = _.defaults({}, options, defaults);

// paths
options.dest = path.join(options.dest, './');
Expand Down
2 changes: 1 addition & 1 deletion lib/package_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ PackageInfo.prototype.get = function() {
if (packageJson.apidoc)
result = packageJson.apidoc;

_.defaults(result, {
result = _.defaults({}, result, {
name : packageJson.name || '',
version : packageJson.version || '0.0.0',
description: packageJson.description || '',
Expand Down

0 comments on commit 3ba232a

Please sign in to comment.