scheduleUpdate() expected behavior after removeChild()?

Hi All,

I have a class that extends CCNode. It calls scheduleUpdate() to do some work in update() on each frame.

When removing and then re-adding this node (with removeChild()/addChild()) the updates stop happening. Is there a way to make them automatically restart when re-adding the child to a parent node?

Currently I’m doing this, but it seems like a hack to me:

parent->removeChild( node ); node->unscheduleUpdate(); node->scheduleUpdate(); parent->addChild(node)

Is there a better solution in this case?