From 3a4942e6c47627646152a54e622692c5bdc52bff Mon Sep 17 00:00:00 2001 From: pandamicro Date: Tue, 27 Jun 2017 21:38:08 +0800 Subject: [PATCH] Add event touch api doc for touch property --- cocos2d/core/event-manager/CCEvent.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cocos2d/core/event-manager/CCEvent.js b/cocos2d/core/event-manager/CCEvent.js index 0c9dc869bf..d14fcb20a8 100644 --- a/cocos2d/core/event-manager/CCEvent.js +++ b/cocos2d/core/event-manager/CCEvent.js @@ -330,7 +330,13 @@ var EventTouch = function (touchArr, bubbles) { cc.Event.call(this, cc.Event.TOUCH, bubbles); this._eventCode = 0; this._touches = touchArr || []; - this.currentTouch = null; + /** + * !#en The current touch object + * !#zh 当前触点对象 + * @property touch + * @type {Touch} + */ + this.touch = null; }; JS.extend(EventTouch, cc.Event);