Skip to content

Commit

Permalink
Update instanceEventEmitter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangenming authored May 23, 2022
1 parent af8fe9f commit d7ba011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/compat/instanceEventEmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function once(
) {
const wrapped = (...args: any[]) => {
off(instance, event, wrapped)
fn.call(instance.proxy, ...args)
fn.apply(instance.proxy, args)
}
wrapped.fn = fn
on(instance, event, wrapped)
Expand Down

0 comments on commit d7ba011

Please sign in to comment.