mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-16 07:48:06 +02:00
Use 'Array.prototype.forEach' instead of '_.each' and '_.forEach'
This commit is contained in:
parent
d87fd095c0
commit
bd8009386d
19 changed files with 74 additions and 82 deletions
|
@ -168,7 +168,7 @@ var GitDemonstrationView = ContainedBase.extend({
|
|||
var chainDeferred = Q.defer();
|
||||
var chainPromise = chainDeferred.promise;
|
||||
|
||||
_.each(commands, function(command, index) {
|
||||
commands.forEach(function(command, index) {
|
||||
chainPromise = chainPromise.then(function() {
|
||||
var myDefer = Q.defer();
|
||||
this.mainVis.gitEngine.dispatch(command, myDefer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue