mirror of
https://github.com/rileyjshaw/terra.git
synced 2024-11-21 04:54:23 +00:00
Make the id argument optional
This commit is contained in:
parent
257fb82e4a
commit
360790c2c4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user