From fe910d01f640bc0e236b1681d2684b35bbeeaf05 Mon Sep 17 00:00:00 2001 From: Xotic750 Date: Tue, 3 Nov 2015 16:43:49 +0100 Subject: [PATCH] The`_.throttle` method uses `_.debounce` so no coersion of `wait` required. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index e25b4e671..e1db32d8b 100644 --- a/lodash.js +++ b/lodash.js @@ -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 }); } /**