File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -575,7 +575,10 @@ const timeout = (ms) => {
575
575
* @param {Function } func - The function to debounce.
576
576
* @param {Number } ms - The time in milliseconds to debounce.
577
577
* @param {Object } timer - A module-global timer as an object.
578
- * @param {Boolean } postpone - If true, the function will be called after it stops being called for N milliseconds.
578
+ * @param {Boolean } [postpone=true] - If true, the function will only be called
579
+ * at the end, after it stops being called for N milliseconds. If false, the
580
+ * function will be called no more than each [ms] milliseconds, ensuring that
581
+ * the function isn't postponed for for too long.
579
582
*
580
583
* @returns {Function } - The debounced function.
581
584
*/
You can’t perform that action at this time.
0 commit comments