Skip to content

Commit

Permalink
fix(1633): use of arrow function lost lexical this (#1645)
Browse files Browse the repository at this point in the history
  • Loading branch information
nstuyvesant authored Aug 9, 2023
1 parent 63f6899 commit 3303b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { defaultLegendAdditionalItems } from './configuration-non-customizable'

export function debounceWithD3MousePosition(fn: any, delay: number, holder: any) {
let timer: any = null
return (...args: any) => {
return function(...args: any) {
const context = this

// Get D3 event here
Expand Down

0 comments on commit 3303b8f

Please sign in to comment.