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:
parent
b6603ca290
commit
0583cdbd90
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue