cocos2d/cocos2d-x — pull request #6486 by cocosQA (2014-04-28 08:19:21+00:00)
Title: [ci skip]Adding popSceneBack() function to Director

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:

Director::sharedDirector()->replaceScene(
TransitionSlideInL::create(0.5,
Director::sharedDirector()->popSceneBack()));