Add event touch api doc for touch property

This commit is contained in:
pandamicro
2017-06-27 21:38:08 +08:00
parent 40eceb7590
commit 3a4942e6c4
+7 -1
View File
@@ -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);