mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 19:37:49 +00:00
Minor doc nit. [ci skip]
This commit is contained in:
@@ -5457,7 +5457,7 @@
|
|||||||
* 'maxWait': 1000
|
* 'maxWait': 1000
|
||||||
* }, false);
|
* }, false);
|
||||||
*
|
*
|
||||||
* // cancelling a debounced call
|
* // cancel a debounced call
|
||||||
* var todoChanges = _.debounce(batchLog, 1000);
|
* var todoChanges = _.debounce(batchLog, 1000);
|
||||||
* Object.observe(models.todo, todoChanges);
|
* Object.observe(models.todo, todoChanges);
|
||||||
*
|
*
|
||||||
@@ -5849,7 +5849,7 @@
|
|||||||
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false })
|
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false })
|
||||||
* jQuery('.interactive').on('click', throttled);
|
* jQuery('.interactive').on('click', throttled);
|
||||||
*
|
*
|
||||||
* // cancelling a trailing throttled call
|
* // cancel a trailing throttled call
|
||||||
* jQuery(window).on('popstate', throttled.cancel);
|
* jQuery(window).on('popstate', throttled.cancel);
|
||||||
*/
|
*/
|
||||||
function throttle(func, wait, options) {
|
function throttle(func, wait, options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user