Skip to content

Commit

Permalink
fix: Add missing argument
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Oct 17, 2019
1 parent 3a0dd75 commit ba36d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if (typeof window !== 'undefined') {
listeners.delete(handler)
},
removeAllListeners: (event: string) => {
Array.from(listeners.values()).map(() => {
Array.from(listeners.values()).map(listener => {
// @ts-ignore
window.removeEventListener(event, listener)
})
Expand Down

0 comments on commit ba36d3e

Please sign in to comment.