[]Laya.EventDispatcher off 删除侦听器
var eventDis = new Laya.EventDispatcher()
eventDis.on('TEST_EVENT_DIS', this, someEventHandler, null)
eventDis.off('TEST_EVENT_DIS', this, another_eventHandler, false)
off 怎样才能 从 EventDispatcher 对象中删除侦听器?
我这样做 eventDis 还是监听TEST_EVENT_DIS
没有找到相关结果
已邀请:
1 个回复
Laya_XS
赞同来自:
eventDis.off('TEST_EVENT_DIS', this, someEventHandler)
这是正常的监听跟移除事件的方法;