类名(EntityEventComponent.name) 在发布编译成index.js时候,类名统一改成了t,不是单独这个类,是所有类名都变成了t
以下是类的构造体的字符串信息 this.constructor.toString()
function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.listeners={},t}
类名(EntityEventComponent.name) 在发布编译成“调试模式”的时候,能正确取出 EntityEventComponent 类名,
“function EntityEventComponent() {
var _this = _super !== null && _super.apply(this, arguments) || this;
/** 监听数组 */
_this.listeners = {};
return _this;
}”
这个问题,导致ts的类名不是唯一的,逻辑上不能通过类获得类名做哈希表的key
这个问题是否存在cocos creator V2.4.2中,请验证,修复。