For example I have such code:
local obj = display.display.newCircle( 0, 0, 50 )
obj:removeSelf()
obj:removeSelf()
on the third line I will have an error that object already was removed. do I have any way to figure out does object was removed, can I write something like:
if obj.parent ~= nil then
obj:removeSelf()
end
as I read in docs: “all properties relating to display object are removed” can I check some of it to be sure that object was removed already? [import]uid: 70928 topic_id: 28333 reply_id: 328333[/import]