cocos2d/cocos2d-html5 — pull request #1733 by dingpinglv (2014-04-01 10:02:36+00:00)
Title: Fixed: use "if-else" replace "switch" for better performance

use "if-else" replace "switch" for better performance
use "if-else" replace "if"