Fixed event and add browser type

Fix cocos/cosos2d-js#1204
Fix #2476 UiWidget setTouchEnabled miss "{}"