Skip to content

Commit

Permalink
fix context of throttle
Browse files Browse the repository at this point in the history
  • Loading branch information
asiloisad committed Jan 14, 2025
1 parent 73479e3 commit 0b170cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tree-view/lib/directory.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ function throttle(func, timeout) {
return (...args) => {
if (timer) { return }
timer = setTimeout(() => {
func.apply(this, args)
func(...args)
timer = false
}, timeout)
}
Expand Down

0 comments on commit 0b170cc

Please sign in to comment.