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; }