This commit is contained in:
MaYuanhai
2020-12-05 03:55:52 -08:00
committed by GitHub

View File

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