Skip to content

Commit

Permalink
add debug info for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichun Zhan committed Nov 18, 2013
1 parent 56e6cbe commit 4df0f06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ Ycb.prototype = {
part,
kv,
context,
setting,
key;

// Extract each section from the bundle
Expand All @@ -383,6 +384,7 @@ Ycb.prototype = {
}
context[kv[0]] = kv[1];
}
setting = section.settings;
// Remove the settings key now we are done with it
delete section.settings;

Expand All @@ -394,6 +396,9 @@ Ycb.prototype = {
if (!this.settings[key]) {
this.settings[key] = section;
} else {
if (options.debug) {
console.log("Merging sections for setting: " + setting);
}
objectMerge(section, this.settings[key]);
}
}
Expand Down

0 comments on commit 4df0f06

Please sign in to comment.