- Dokumentacja
- Funkcje wspólne
- detachElements
Funkcja
detachElements
Odczepia element od tego, do którego był przyczepiony.
Składnia
bool detachElements(element theElement [, element theAttachToElement = nil])Argumenty
theElementelement- Przyczepiony element.
theAttachToElementelement, opcjonalny = nil- Element, od którego odczepiasz.
Zwraca
true przy powodzeniu.
Przykład
if isElementAttached(box) then
detachElements(box)
end