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
refactor PhysicsContact inherits from EventCustom; simplify emitting collision events
fix compile error
CCScrollView should inherit CCActionTweenDelegate
CCActionTweenDelegate => ActionTweenDelegate
fix compile
fix compile
fix compile
delete useless code in deaccelerateScrolling
more useless code
more useless code
remove the workaround cast
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.
Merge branch 'physics_event' of https://github.com/edwardzhou/cocos2d-x into iss3716_refactor_physicscontact

Conflicts:
	cocos/physics/CCPhysicsContact.h
issue #3716: refactor physics contact