Basically, when the user changes visibility to and fro, the undo step should be removed. CCBUG:389876