update event api

This commit is contained in:
knoxHuang
2016-03-18 17:26:36 +08:00
parent 1e3a652440
commit 7e0d49a0bf
2 changed files with 5 additions and 4 deletions
@@ -561,7 +561,6 @@ JS.extend(EventKeyboard, cc.Event);
cc.Event.EventMouse = EventMouse;
cc.Event.EventTouch = EventTouch;
cc.Event.EventFocus = EventFocus;
cc.Event.EventAcceleration = EventAcceleration;
cc.Event.EventKeyboard = EventKeyboard;
+5 -3
View File
@@ -117,7 +117,9 @@ var _doSendEvent = function (owner, event) {
* - _getCapturingTargets
* - _getBubblingTargets
*
* !#zh 事件目标
* !#zh
* 事件目标是事件触发时,分派的事件对象,Node 是最常见的事件目标,
* 但是其他对象也可以是事件目标。<br/>
*
* @class EventTarget
*/
@@ -210,7 +212,7 @@ JS.mixin(EventTarget.prototype, {
* Removes the callback previously registered with the same type, callback, target and or useCapture.
* This method is merely an alias to removeEventListener.
* !#zh
* 删除之前与同类型,回调,目标和或 useCapture 注册的回调,仅仅是 removeEventListener 的别名
* 删除之前与同类型,回调,目标或 useCapture 注册的回调,仅仅是 removeEventListener 的别名。
*
* @method off
* @param {String} type - A string representing the event type being removed.
@@ -323,7 +325,7 @@ JS.mixin(EventTarget.prototype, {
*
* @method emit
* @param {String} message - the message to send
* @param {any} [detail] - whatever argument the message needs
* @param {*} [detail] - whatever argument the message needs
*/
emit: function (message, detail) {
if ( typeof message === 'string' ) {