Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Don't merge component overrides into project metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrove committed Sep 27, 2011
1 parent e370e0c commit 1fd868d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/selleck.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ function prepare(inDir, options, callback) {
// else.
util.mix(options.meta, options.overrideMeta);

if (options.overrideMeta && options.overrideMeta.componentDefaults) {
if (options.component && options.overrideMeta && options.overrideMeta.componentDefaults) {
util.mix(options.meta, options.overrideMeta.componentDefaults);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function mix() {
key = keys[i];
value = source[key];

if (typeof value === 'object' && !Array.isArray(value)) {
if (value && typeof value === 'object' && !Array.isArray(value)) {
typeof target[key] === 'object' || (target[key] = {});
mix(target[key], value);
} else {
Expand Down

0 comments on commit 1fd868d

Please sign in to comment.