cocos2d/cocos2d-x — pull request #2351 by rodrigogolive (2013-04-10 18:43:44+00:00)
Title: Adding popSceneBack() function to CCDirector

This function deletes the running scene and returns the actual scene
back to the caller. This way, we can simply use it to perform a
transition animation, like this:

CCDirector::sharedDirector()->replaceScene(
CCTransitionSlideInL::create(0.5,
CCDirector::sharedDirector()->popSceneBack()));