Fixed turtle.

This commit is contained in:
Alexander Kastius
2016-08-12 14:42:35 +02:00
parent fbb1cfb67b
commit 0ca52a9b8f
5 changed files with 22 additions and 45 deletions

View File

@@ -34,10 +34,12 @@ CodeOceanEditorWebsocket = {
this.printWebsocketOutput(msg);
break;
case 'turtle':
this.initTurtle();
this.showCanvas();
this.handleTurtleCommand(msg);
break;
case 'turtlebatch':
this.initTurtle();
this.showCanvas();
this.handleTurtlebatchCommand(msg);
break;
@@ -49,6 +51,7 @@ CodeOceanEditorWebsocket = {
this.handleQaApiOutput();
this.handleStderrOutputForFlowr();
this.augmentStacktraceInOutput();
this.cleanUpTurtle();
break;
case 'timeout':
// just show the timeout message here. Another exit command is sent by the rails backend when the socket to the docker container closes.