diff --git a/dist/lodash.compat.js b/dist/lodash.compat.js index 551fbb2b5..9c5368f52 100644 --- a/dist/lodash.compat.js +++ b/dist/lodash.compat.js @@ -4450,7 +4450,7 @@ * function will return the result of the last `func` call. * * Note: If `leading` and `trailing` options are `true`, `func` will be called - * on the trailing edge of the timeout only if the the throttled function is + * on the trailing edge of the timeout only if the the debounced function is * invoked more than once during the `wait` timeout. * * @static @@ -4467,7 +4467,7 @@ * var lazyLayout = _.debounce(calculateLayout, 300); * jQuery(window).on('resize', lazyLayout); * - * jQuery('.postbox').on('click', _.debounce(sendMail, 200, { + * jQuery('#postbox').on('click', _.debounce(sendMail, 200, { * 'leading': true, * 'trailing': false * }); diff --git a/dist/lodash.js b/dist/lodash.js index c7557a2d6..707ace4ac 100644 --- a/dist/lodash.js +++ b/dist/lodash.js @@ -4190,7 +4190,7 @@ * function will return the result of the last `func` call. * * Note: If `leading` and `trailing` options are `true`, `func` will be called - * on the trailing edge of the timeout only if the the throttled function is + * on the trailing edge of the timeout only if the the debounced function is * invoked more than once during the `wait` timeout. * * @static @@ -4207,7 +4207,7 @@ * var lazyLayout = _.debounce(calculateLayout, 300); * jQuery(window).on('resize', lazyLayout); * - * jQuery('.postbox').on('click', _.debounce(sendMail, 200, { + * jQuery('#postbox').on('click', _.debounce(sendMail, 200, { * 'leading': true, * 'trailing': false * }); diff --git a/dist/lodash.underscore.js b/dist/lodash.underscore.js index 5797d42ab..1e3d0d096 100644 --- a/dist/lodash.underscore.js +++ b/dist/lodash.underscore.js @@ -3469,7 +3469,7 @@ * function will return the result of the last `func` call. * * Note: If `leading` and `trailing` options are `true`, `func` will be called - * on the trailing edge of the timeout only if the the throttled function is + * on the trailing edge of the timeout only if the the debounced function is * invoked more than once during the `wait` timeout. * * @static @@ -3486,7 +3486,7 @@ * var lazyLayout = _.debounce(calculateLayout, 300); * jQuery(window).on('resize', lazyLayout); * - * jQuery('.postbox').on('click', _.debounce(sendMail, 200, { + * jQuery('#postbox').on('click', _.debounce(sendMail, 200, { * 'leading': true, * 'trailing': false * }); diff --git a/doc/README.md b/doc/README.md index 07cd2e4d3..4d12bb57a 100644 --- a/doc/README.md +++ b/doc/README.md @@ -2080,7 +2080,7 @@ _.toLookup(stooges, 'name'); Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call. -Note: If `leading` and `trailing` options are `true`, `func` will be called on the trailing edge of the timeout only if the the throttled function is invoked more than once during the `wait` timeout. +Note: If `leading` and `trailing` options are `true`, `func` will be called on the trailing edge of the timeout only if the the debounced function is invoked more than once during the `wait` timeout. #### Arguments 1. `func` *(Function)*: The function to debounce. @@ -2095,7 +2095,7 @@ Note: If `leading` and `trailing` options are `true`, `func` will be called on t var lazyLayout = _.debounce(calculateLayout, 300); jQuery(window).on('resize', lazyLayout); -jQuery('.postbox').on('click', _.debounce(sendMail, 200, { +jQuery('#postbox').on('click', _.debounce(sendMail, 200, { 'leading': true, 'trailing': false }); diff --git a/lodash.js b/lodash.js index 3c32e0c14..8308b86c7 100644 --- a/lodash.js +++ b/lodash.js @@ -4460,7 +4460,7 @@ * function will return the result of the last `func` call. * * Note: If `leading` and `trailing` options are `true`, `func` will be called - * on the trailing edge of the timeout only if the the throttled function is + * on the trailing edge of the timeout only if the the debounced function is * invoked more than once during the `wait` timeout. * * @static @@ -4477,7 +4477,7 @@ * var lazyLayout = _.debounce(calculateLayout, 300); * jQuery(window).on('resize', lazyLayout); * - * jQuery('.postbox').on('click', _.debounce(sendMail, 200, { + * jQuery('#postbox').on('click', _.debounce(sendMail, 200, { * 'leading': true, * 'trailing': false * });