0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-23 09:26:51 -05:00

added Render.create warning for omitted element

This commit is contained in:
liabru 2015-01-21 00:11:10 +00:00
parent b6603ca290
commit 0583cdbd90

View file

@ -74,7 +74,7 @@ var Render = {};
if (Common.isElement(render.element)) { if (Common.isElement(render.element)) {
render.element.appendChild(render.canvas); render.element.appendChild(render.canvas);
} else { } else {
Common.log('No "render.element" passed, "render.canvas" was not inserted into document.', 'warn'); Common.log('Render.create: options.element was undefined, render.canvas was created but not appended', 'warn');
} }
return render; return render;