fixed accelerometer bug on ios and orientation bug
Merge pull request #788 from ShengxiangChen/issueXXX_AccelerateForHTML5AndJSB

fixed accelerometer bug on ios and orientation bug