working on images

This commit is contained in:
Danny Yoo 2011-07-19 14:27:44 -04:00
parent 62bee7804c
commit 9758b0dcb1

View File

@ -213,7 +213,7 @@ ToDraw.prototype.toRawHandler = function(MACHINE, toplevelNode) {
reusableCanvas.height = height; reusableCanvas.height = height;
var ctx = reusableCanvas.getContext("2d"); var ctx = reusableCanvas.getContext("2d");
v.render(ctx, 0, 0); v.render(ctx, 0, 0);
success([toplevelNode, rawJsworld.node_to_tree(reusableCanvasNode)]); success([toplevelNode, reusableCanvasNode]);
} else { } else {
success([toplevelNode, rawJsworld.node_to_tree(plt.baselib.format.toDomNode(v))]); success([toplevelNode, rawJsworld.node_to_tree(plt.baselib.format.toDomNode(v))]);
} }