Fixed #1008
This commit is contained in:
parent
338b613074
commit
f653aa3375
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
|
||||||
destroy: ->
|
destroy: ->
|
||||||
mark.destroy() for name, mark of @marks
|
mark.destroy() for name, mark of @marks
|
||||||
label.destroy() for name, label of @labels
|
label.destroy() for name, label of @labels
|
||||||
|
p.removeChild @healthBar if p = @healthBar?.parent
|
||||||
@imageObject?.off 'animationend', @playNextAction
|
@imageObject?.off 'animationend', @playNextAction
|
||||||
clearInterval @effectInterval if @effectInterval
|
clearInterval @effectInterval if @effectInterval
|
||||||
super()
|
super()
|
||||||
|
|
Reference in a new issue