refactor(runtime-dom/events): use more explicit variable name to avoid shadowing
This commit is contained in:
parent
6d5c12b63a
commit
caaeaff2fd
@ -62,7 +62,10 @@ export function patchEvent(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function createInvoker(value: any, instance: ComponentInternalInstance | null) {
|
function createInvoker(
|
||||||
|
initialValue: any,
|
||||||
|
instance: ComponentInternalInstance | null
|
||||||
|
) {
|
||||||
const invoker = ((e: Event) => {
|
const invoker = ((e: Event) => {
|
||||||
// async edge case #6566: inner click event triggers patch, event handler
|
// async edge case #6566: inner click event triggers patch, event handler
|
||||||
// attached to outer element during patch, and triggered again. This
|
// attached to outer element during patch, and triggered again. This
|
||||||
@ -92,8 +95,8 @@ function createInvoker(value: any, instance: ComponentInternalInstance | null) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}) as any
|
}) as any
|
||||||
invoker.value = value
|
invoker.value = initialValue
|
||||||
value.invoker = invoker
|
initialValue.invoker = invoker
|
||||||
invoker.lastUpdated = getNow()
|
invoker.lastUpdated = getNow()
|
||||||
return invoker
|
return invoker
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user