vis branch fix

This commit is contained in:
Peter Cottle 2013-01-09 01:33:50 -08:00
parent 13b616bd04
commit 0c7ff70b14
9 changed files with 501 additions and 21 deletions

View file

@ -118,10 +118,10 @@ var Level = Sandbox.extend({
treeString: options.level.startTree
});
this.initGoalVisualization(options);
this.initGoalVisualization();
},
initGoalVisualization: function(options) {
initGoalVisualization: function() {
// first we make the goal visualization holder
this.goalCanvasHolder = new CanvasTerminalHolder();
@ -172,6 +172,8 @@ var Level = Sandbox.extend({
showGoal: function(command, defer) {
this.goalCanvasHolder.slideIn();
if (!command || !defer) { return; }
setTimeout(function() {
command.finishWith(defer);
}, this.goalCanvasHolder.getAnimationTime());