AWESOMEEEEEe first big refactor and its awesome

This commit is contained in:
Peter Cottle 2013-06-02 17:20:13 -07:00
parent bf6f987482
commit 4619eb370c
2 changed files with 11 additions and 7 deletions

View file

@ -7097,7 +7097,7 @@ GitEngine.prototype.initUniqueID = function() {
this.uniqueId = (function() { this.uniqueId = (function() {
var n = 0; var n = 0;
return function(prepend) { return function(prepend) {
return prepend? prepend + n++ : n++; return prepend ? prepend + n++ : n++;
}; };
})(); })();
}; };
@ -7900,7 +7900,6 @@ GitEngine.prototype.fakeTeamwork = function(numToMake) {
this.origin.gitVisuals this.origin.gitVisuals
); );
animation.play(); animation.play();
console.log('playing animation');
return animation.getPromise(); return animation.getPromise();
}, this); }, this);
@ -7912,7 +7911,9 @@ GitEngine.prototype.fakeTeamwork = function(numToMake) {
// teamwork all at once because then the animation of each child // teamwork all at once because then the animation of each child
// is difficult. Instead, we will generate a promise chain which will // is difficult. Instead, we will generate a promise chain which will
// produce the commit right before every animation // produce the commit right before every animation
chain = chain.then(chainStep()); chain = chain.then(function() {
return chainStep();
});
} }
deferred.resolve(); deferred.resolve();
@ -22999,7 +23000,7 @@ GitEngine.prototype.initUniqueID = function() {
this.uniqueId = (function() { this.uniqueId = (function() {
var n = 0; var n = 0;
return function(prepend) { return function(prepend) {
return prepend? prepend + n++ : n++; return prepend ? prepend + n++ : n++;
}; };
})(); })();
}; };
@ -23802,7 +23803,6 @@ GitEngine.prototype.fakeTeamwork = function(numToMake) {
this.origin.gitVisuals this.origin.gitVisuals
); );
animation.play(); animation.play();
console.log('playing animation');
return animation.getPromise(); return animation.getPromise();
}, this); }, this);
@ -23814,7 +23814,9 @@ GitEngine.prototype.fakeTeamwork = function(numToMake) {
// teamwork all at once because then the animation of each child // teamwork all at once because then the animation of each child
// is difficult. Instead, we will generate a promise chain which will // is difficult. Instead, we will generate a promise chain which will
// produce the commit right before every animation // produce the commit right before every animation
chain = chain.then(chainStep()); chain = chain.then(function() {
return chainStep();
});
} }
deferred.resolve(); deferred.resolve();

View file

@ -858,7 +858,9 @@ GitEngine.prototype.fakeTeamwork = function(numToMake) {
// teamwork all at once because then the animation of each child // teamwork all at once because then the animation of each child
// is difficult. Instead, we will generate a promise chain which will // is difficult. Instead, we will generate a promise chain which will
// produce the commit right before every animation // produce the commit right before every animation
chain = chain.then(chainStep()); chain = chain.then(function() {
return chainStep();
});
} }
deferred.resolve(); deferred.resolve();