Improve readability of code that merges in options.
This commit is contained in:
parent
a2dc4bd7db
commit
4013550e98
|
@ -227,13 +227,13 @@ function beautify() {
|
|||
collectedConfig = currOptions;
|
||||
} else {
|
||||
// Merge with selected options
|
||||
// this == `selected`, where `selected` could be `html`, `js`, 'css', etc
|
||||
_.merge(collectedConfig, currOptions[this]);
|
||||
// where `selection` could be `html`, `js`, 'css', etc
|
||||
_.merge(collectedConfig, currOptions[selection]);
|
||||
}
|
||||
|
||||
return extend(result, collectedConfig);
|
||||
|
||||
}, {}, selection);
|
||||
}, {});
|
||||
|
||||
|
||||
// TODO: Clean.
|
||||
|
|
Loading…
Reference in New Issue