大约有 6 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0019 秒)
laya消息机制上的大bug Laya消息机制中offAllCaller自身逻辑错误:(涵盖版本:所有) laya.core.js:1001行 offAllCaller函数: 在调用this.off(name,caller,null);时 listener传入参数为空。 laya.core.js:951行 off函数的实现方法中: if (listener !=null){ 直...
来源: Laya_社区 发布时间: 20181110
...pt组件之前,增加对当前owner的监听移除,即增加this.owner.offAllCaller(this); 附件 : --> 2025-07-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 layabox 赞同来自: 已在3.3.0正式版中...
来源: Laya_社区 发布时间: 20250715
...注册事件之前,先 off 掉吧,例如 item.getChildByName('name').offAllCaller(this); item.getChildByName('name').on(Laya.Event.CLICK, this, ()=>{ ... } 2025-10-21 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 17548911...
来源: Laya_社区 发布时间: 20251021
...(Event.LOADED, data instanceof Array ? [data] : data); } else { this._http.offAllCaller(this); Loader._loaders.push(this); if (!Loader._isWorking) Loader.checkNext(); } } 2020-02-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 135*****...
来源: Laya_社区 发布时间: 20200214
...建的组件 todo } protected onHide() { super.onHide(); this.contentPane.offAllCaller(this); } private startGen(): void { // todo } } class SplitAtlasSetting { @IEditor.onLoad static start() { Editor.typeRegistry.addTypes([ { name: "SplitAtlasSetting", catalogBarStyle: "hidden", properties: [ { nam...
来源: Laya_社区 发布时间: 20250731
... ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf(); } }); })); } genSpine(url, handler: Laya.Handler) { var templet = new Laya.SpineTemplet(Laya.SpineVersion.v4_0); templet.on(Laya.Event.COMPLETE, handler.caller, handler.method);...
来源: Laya_社区 发布时间: 20220530