The_.throttle method uses _.debounce so no coersion of wait required.

This commit is contained in:
Xotic750
2015-11-03 16:43:49 +01:00
committed by John-David Dalton
parent ea71539b7a
commit fe910d01f6

View File

@@ -8730,7 +8730,7 @@
leading = 'leading' in options ? !!options.leading : leading;
trailing = 'trailing' in options ? !!options.trailing : trailing;
}
return debounce(func, wait, { 'leading': leading, 'maxWait': +wait, 'trailing': trailing });
return debounce(func, wait, { 'leading': leading, 'maxWait': wait, 'trailing': trailing });
}
/**