mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
054c1d8eaf
* fix cc.ClickEvent target type error * add event handler schema * add comments * add comments
7 lines
267 B
TypeScript
7 lines
267 B
TypeScript
import { CCClass } from '../data';
|
|
import { Node } from '../scene-graph';
|
|
import { EventHandler } from './component-event-handler';
|
|
|
|
CCClass.Attr.setClassAttr(EventHandler, 'target', 'type', 'Object');
|
|
CCClass.Attr.setClassAttr(EventHandler, 'target', 'ctor', Node);
|