Clear big-bang canvas on each to-draw event #12

This commit is contained in:
Vishesh Yadav 2015-05-02 14:33:42 -04:00
parent dbab390431
commit bb0b53c464

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 {