From b272808a2d9a41ac6692aaa4bf7b1a09fde22fe4 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Sat, 1 Feb 2014 02:07:50 +0100 Subject: [PATCH] Use display.remove(). --- spine-corona/spine-corona/spine.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-corona/spine-corona/spine.lua b/spine-corona/spine-corona/spine.lua index e05bd5e1a..a7711e6a6 100644 --- a/spine-corona/spine-corona/spine.lua +++ b/spine-corona/spine-corona/spine.lua @@ -93,7 +93,7 @@ function spine.Skeleton.new (skeletonData, group) local attachment = slot.attachment if not attachment then -- Attachment is gone, remove the image. if image then - image:removeSelf() + display.remove(image) images[slot] = nil end elseif attachment.type == spine.AttachmentType.region then @@ -102,7 +102,7 @@ function spine.Skeleton.new (skeletonData, group) image.lastR, image.lastA = nil, nil image.attachment = attachment else -- If not modified, remove the image and it will be recreated. - image:removeSelf() + display.remove(image) images[slot] = nil image = nil end