pull/3487/merge
MaYuanhai 2024-11-28 00:29:02 +00:00 committed by GitHub
commit 19e50d27e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -271,7 +271,8 @@ export function debounce(func, wait, immediate) {
}
}
return function(...args) {
return function() {
args = arguments
context = this
timestamp = +new Date()
const callNow = immediate && !timeout