- Documentation
- Shared functions
- detachElements
Function
detachElements
Detaches an element from the one it was attached to.
Syntax
bool detachElements(element theElement [, element theAttachToElement = nil])Arguments
theElementelement- The attached element.
theAttachToElementelement, optional = nil- The element to detach from.
Returns
true on success.
Example
if isElementAttached(box) then
detachElements(box)
end