Some logging, some code simplification, clear canvas on start

This commit is contained in:
Ralf Teusner
2015-11-03 15:54:08 +01:00
parent ef60494911
commit eb8c0e46fa
3 changed files with 10 additions and 3 deletions

View File

@ -1127,6 +1127,10 @@ $(function() {
var initTurtle = function() {
// todo guard clause if turtle is not required for the current exercise
// clear canvas
// turtlecanvas.getContext("2d").clearRect(0, 0, turtlecanvas.width, turtlecanvas.height);
turtlescreen = new Turtle(websocket, turtlecanvas);
if ($('#run').isPresent()) {
$('#run').bind('click', hideCanvas);