mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-30 06:39:49 +02:00
Replace some '_.each' with 'Array.prototype.forEach'
This commit is contained in:
parent
489a4b9095
commit
0134bf9870
4 changed files with 50 additions and 56 deletions
|
@ -34,7 +34,7 @@ var commands = {
|
|||
if (result.multiDelegate) {
|
||||
// we need to do multiple delegations with
|
||||
// a different command at each step
|
||||
_.each(result.multiDelegate, function(delConfig) {
|
||||
result.multiDelegate.forEach(function(delConfig) {
|
||||
// copy command, and then set opts
|
||||
commandObj.setOptionsMap(delConfig.options || {});
|
||||
commandObj.setGeneralArgs(delConfig.args || []);
|
||||
|
@ -70,7 +70,7 @@ var commands = {
|
|||
var displayName = config.displayName || name;
|
||||
var thisMap = {};
|
||||
// start all options off as disabled
|
||||
_.each(config.options, function(option) {
|
||||
(config.options || []).forEach(function(option) {
|
||||
thisMap[option] = false;
|
||||
});
|
||||
optionMap[vcs][displayName] = thisMap;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue