Fixed event and add browser type

Fixed cocos2d/cocos2d-js#1204
Fixed #2476 UiWidget setTouchEnabled miss "{}"