From 360790c2c4a22ba397924e647020416f63b45e4a Mon Sep 17 00:00:00 2001 From: Riley Shaw Date: Fri, 22 Aug 2014 16:17:02 -0700 Subject: [PATCH] Make the id argument optional --- app/dom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dom.js b/app/dom.js index 8f8458c..b232052 100644 --- a/app/dom.js +++ b/app/dom.js @@ -23,7 +23,7 @@ var createCanvasElement = function (width, height, id, insertAfter) { canvas.style.width = width + 'px'; canvas.style.height = height + 'px'; canvas.getContext('2d').setTransform(ratio, 0, 0, ratio, 0, 0); - canvas.id = id; + if (id) canvas.id = id; return canvas; }