Skip to content

Commit

Permalink
refactor: remove useless params in emits handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cexbrayat committed Sep 19, 2022
1 parent 2deb954 commit 961865f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/emit.ts
Expand Up @@ -29,11 +29,11 @@ export function emitted<T = unknown>(

export const attachEmitListener = () => {
// use devtools to capture this "emit"
setDevtoolsHook(createDevTools(events), {})
setDevtoolsHook(createDevTools(), {})
}

// devtools hook only catches Vue component custom events
function createDevTools(events: Events): any {
function createDevTools(): any {
return {
emit(eventType, ...payload) {
if (eventType !== DevtoolsHooks.COMPONENT_EMIT) return
Expand Down

0 comments on commit 961865f

Please sign in to comment.