Bump to v4.2.0.

This commit is contained in:
John-David Dalton
2016-02-01 23:15:49 -08:00
parent 466c67a8b6
commit 365d103439
65 changed files with 167 additions and 151 deletions

View File

@@ -34,14 +34,14 @@ var FUNC_ERROR_TEXT = 'Expected a function';
* @returns {Function} Returns the new throttled function.
* @example
*
* // avoid excessively updating the position while scrolling
* // Avoid excessively updating the position while scrolling.
* jQuery(window).on('scroll', _.throttle(updatePosition, 100));
*
* // invoke `renewToken` when the click event is fired, but not more than once every 5 minutes
* // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
* jQuery(element).on('click', throttled);
*
* // cancel a trailing throttled invocation
* // Cancel the trailing throttled invocation.
* jQuery(window).on('popstate', throttled.cancel);
*/
function throttle(func, wait, options) {