closed #2828:  Simplify cc.FrameType.