Fixed a bug of cc.EditBox for v2.x

Fixed a bug of cc.EditBox for v2.x