Cancel the onSubThreadEnded callback,because _ws may be deleted in the onClose callback.
const correctness: use cbegin/cend, const std::string
fix typo CCGeometry private function
unnecessary assignment
const correctness
Added clang support for Mingw64
CCScrollView should inherit CCActionTweenDelegate
CCActionTweenDelegate => ActionTweenDelegate
fix compile
fix compile
fix compile
delete useless code in deaccelerateScrolling
more useless code
more useless code
Update WebSocket.cpp

bufix: when connecting fail, libwebsocket_client_connect() will return NULL, and onSocketCallback() will not be called, so we need trigger WS_MSG_TO_UITHREAD_ERROR here.
closed #2920: fix bug voice recognition input crash on ios7
issue #2920: fix coding style
issue #2920: fix indent
Fixed crashing when calling CCDirector's end().
fix string size check and assert condition

1. std::string::size() return size_t (is never < 0)
2. "event must be larger than 0" and 'event' has unsigned int type