You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Docs/Types/Function.md
+3-25Lines changed: 3 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -375,11 +375,12 @@ This method will return a new function that will be called only once per group o
375
375
376
376
### Syntax:
377
377
378
-
var debounceFn = myFn.debounce({delay: 100});
378
+
var debounceFn = myFn.debounce(delay, leading);
379
379
380
380
### Arguments:
381
381
382
-
1. obj - (*mixed*) If this argument is a number it will use it as the *delay* timeout of the debounce. If this argument is a object it will allow more specific configuration. Leaving the argument empty will fall to default values.
382
+
1. delay - (*number*, optional, defaults to 250ms) The delay to wait before a call to the debounced function can happen again.
383
+
2. leading - (*boolean*, optional, defaults to false) If the call to the debounced function should happen in leading phase of group of calls or after.
383
384
384
385
### Returns:
385
386
@@ -394,29 +395,6 @@ This method will return a new function that will be called only once per group o
0 commit comments