From 61418d22f2bb7eae175d9c3485ad96f40127b606 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 5 Oct 2009 10:16:34 +0200 Subject: [PATCH] add optional outputCanvas to options object --- pixastic.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixastic.core.js b/pixastic.core.js index 7bd7b32..fc75f88 100755 --- a/pixastic.core.js +++ b/pixastic.core.js @@ -153,7 +153,7 @@ var Pixastic = (function() { var canvas, ctx; if (Pixastic.Client.hasCanvas()) { - canvas = document.createElement("canvas"); + canvas = options.outputCanvas || document.createElement("canvas"); ctx = canvas.getContext("2d"); }