reset bug on removing parts of a collection in place

This commit is contained in:
Peter Cottle 2012-11-04 23:10:17 -08:00
parent 5246580b27
commit 925497377e
3 changed files with 26 additions and 19 deletions

View file

@ -123,8 +123,8 @@ GitEngine.prototype.instantiateFromTree = function(tree) {
};
GitEngine.prototype.reloadGraphics = function() {
// get the root commit, no better way to do it
var rootCommit = null;
this.commitCollection.each(function(commit) {
if (commit.get('id') == 'C0') {
rootCommit = commit;
@ -134,7 +134,7 @@ GitEngine.prototype.reloadGraphics = function() {
this.gitVisuals.rootCommit = rootCommit;
// this just basically makes the HEAD branch. the head branch really should have been
// a member of a collection and not this annoying edge case stuff... one day TODO
// a member of a collection and not this annoying edge case stuff... one day
this.gitVisuals.initHeadBranch();
// when the paper is ready