fake teamwork better

This commit is contained in:
Peter Cottle 2013-07-16 09:11:26 -07:00
parent f7af08c5fe
commit 62867c9f43
9 changed files with 44 additions and 27 deletions

View file

@ -99,6 +99,8 @@ var GitDemonstrationView = ContainedBase.extend({
var whenHaveTree = Q.defer();
HeadlessGit.getTreeQuick(this.options.beforeCommand, whenHaveTree);
whenHaveTree.promise.then(_.bind(function(tree) {
console.log('the before command i got', this.options.beforeCommand);
console.log(tree, 'is what i got');
this.mainVis.gitEngine.loadTree(tree);
this.mainVis.gitVisuals.refreshTreeHarsh();
}, this));