Merge pull request #14 from vishesh/task/clear-canvas

Clear big-bang canvas on each to-draw event #12
This commit is contained in:
Jens Axel Søgaard 2015-05-04 22:04:06 +02:00
commit ec428bb334

View File

@ -315,6 +315,7 @@ ToDraw.prototype.toRawHandler = function(MACHINE, toplevelNode) {
reusableCanvas.height = height;
}
var ctx = reusableCanvas.getContext("2d");
ctx.clearRect(0, 0, width, height);
v.render(ctx, 0, 0);
success([toplevelNode, reusableCanvasNode]);
} else {