part of reload fixed

This commit is contained in:
Peter Cottle 2012-11-04 23:53:34 -08:00
parent 60214f93b2
commit 3281c88b52
2 changed files with 2 additions and 9 deletions

View file

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

View file

@ -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);
}
};