Make the id argument optional

This commit is contained in:
Riley Shaw 2014-08-22 16:17:02 -07:00
parent 257fb82e4a
commit 360790c2c4

View File

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