1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

fix removeListener esLint

This commit is contained in:
yoanngueny 2021-07-02 09:16:29 +02:00
parent 3fd6dc3e05
commit d4eafa6824

View File

@ -238,7 +238,7 @@ export default defineComponent({
removeListener(type: string, cb: {(e?: any): void}) { removeListener(type: string, cb: {(e?: any): void}) {
const callbacks = this.getCallbacks(type) const callbacks = this.getCallbacks(type)
const index = callbacks.indexOf(cb) const index = callbacks.indexOf(cb)
if (index != -1) callbacks.splice(index, 1) if (index !== -1) callbacks.splice(index, 1)
}, },
getCallbacks(type: string) { getCallbacks(type: string) {