Improve readability of code that merges in options.

This commit is contained in:
Glavin Wiechert 2014-06-13 13:45:57 -03:00
parent a2dc4bd7db
commit 4013550e98
1 changed files with 3 additions and 3 deletions

View File

@ -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.