fix(runtime-dom/events): fix wrong scope for event value (#117)

This commit is contained in:
Stanislav Lashmanov 2019-10-07 17:56:24 +03:00 committed by Evan You
parent be0303ec7d
commit 6d5c12b63a

View File

@ -72,6 +72,7 @@ function createInvoker(value: any, instance: ComponentInternalInstance | null) {
// AFTER it was attached.
if (e.timeStamp >= invoker.lastUpdated) {
const args = [e]
const value = invoker.value
if (isArray(value)) {
for (let i = 0; i < value.length; i++) {
callWithAsyncErrorHandling(