mirror of
https://github.com/troisjs/trois.git
synced 2024-11-23 20:02:32 +08:00
commit
c611533929
@ -238,7 +238,7 @@ export default defineComponent({
|
||||
removeListener(type: string, cb: {(e?: any): void}) {
|
||||
const callbacks = this.getCallbacks(type)
|
||||
const index = callbacks.indexOf(cb)
|
||||
if (index) callbacks.splice(index, 1)
|
||||
if (index !== -1) callbacks.splice(index, 1)
|
||||
},
|
||||
|
||||
getCallbacks(type: string) {
|
||||
|
Loading…
Reference in New Issue
Block a user