Cocos2dx - how to write inline function for sequence?

this.waiting.runAction(cc.sequence( sprite_action_1, 
        cc.callFunc(function() {            
            this.removeChild(this.waiting);
            this.startGame();
        }, this)));

It does not do the animation. It just removes the waiting layer immediately.

I saw in c++ code, RemoveSelf and node->removeFromParent() to remove that layer after animation. How can i do this in javascript?

Can you show a bit more code?