lib fix
This commit is contained in:
parent
b05da50596
commit
3fe84e302f
|
|
@ -735,12 +735,12 @@
|
||||||
|
|
||||||
//existence check
|
//existence check
|
||||||
if(!elementExists(elementInput)) {
|
if(!elementExists(elementInput)) {
|
||||||
throw new Error("Element " + _element + " doesn't exist!");
|
throw new Error("Element " + elementInput + " doesn't exist!");
|
||||||
};
|
};
|
||||||
|
|
||||||
//actual creation check
|
//actual creation check
|
||||||
if(isEmpty(x,y)) {
|
if(isEmpty(x,y)) {
|
||||||
createPixel(element,x,y);
|
createPixel(elementInput,x,y);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue