Merge pull request #1418 from dingpinglv/Iss3501_ReleaseV2.2.2

Issue #3501: update build.xml for jsDoc
Refactor #3370: Window adaptation fixed for Mi 2
Fixed #3569: Y axe correction for clear rect
Merge pull request #1422 from pandamicro/develop

Fixed #3569: Y axe correction for clear rect
Issue #3501: replace cc.WHITE, cc.RED etc to cc.white(), cc.red()...
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 into Iss3501_ReleaseV2.2.2