mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-09 14:14:27 +02:00
part of reload fixed
This commit is contained in:
parent
60214f93b2
commit
3281c88b52
2 changed files with 2 additions and 9 deletions
|
@ -130,7 +130,6 @@ GitEngine.prototype.reloadGraphics = function() {
|
|||
rootCommit = commit;
|
||||
}
|
||||
});
|
||||
|
||||
this.gitVisuals.rootCommit = rootCommit;
|
||||
|
||||
// this just basically makes the HEAD branch. the head branch really should have been
|
||||
|
|
|
@ -88,8 +88,6 @@ GitVisuals.prototype.deferFlush = function() {
|
|||
_.each(this.deferred, function(action) {
|
||||
action();
|
||||
}, this);
|
||||
console.log('defer flushed', this.visBranchCollection);
|
||||
console.log(this.branchCollection);
|
||||
this.deferred = [];
|
||||
};
|
||||
|
||||
|
@ -454,25 +452,21 @@ GitVisuals.prototype.addBranchFromEvent = function(branch, collection, index) {
|
|||
}, this);
|
||||
|
||||
if (!this.gitEngine || !this.gitReady) {
|
||||
console.log('deferring this action', branch);
|
||||
this.defer(action);
|
||||
} else {
|
||||
action();
|
||||
}
|
||||
};
|
||||
|
||||
GitVisuals.prototype.addBranch = function(branch, paperOverride) {
|
||||
GitVisuals.prototype.addBranch = function(branch) {
|
||||
var visBranch = new VisBranch({
|
||||
branch: branch,
|
||||
gitVisuals: this,
|
||||
gitEngine: this.gitEngine
|
||||
});
|
||||
console.log('adding branch with name', branch.get('id'));
|
||||
console.log('git ready', this.gitReady, ' and paper', paperOverride);
|
||||
|
||||
this.visBranchCollection.add(visBranch);
|
||||
if (!paperOverride && this.gitReady) {
|
||||
console.log('genningg raphics?');
|
||||
if (this.gitReady) {
|
||||
visBranch.genGraphics(this.paper);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue