From 456a69c559f65330d6a3c981b5b99c8a1ca538f2 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Mon, 24 Oct 2011 11:51:47 -0400 Subject: [PATCH] fixing documentation for throttle. --- index.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index eae7510e1..1b4f4313f 100644 --- a/index.html +++ b/index.html @@ -798,11 +798,12 @@ $(window).scroll(throttled);

debounce_.debounce(function, wait)
- Repeated calls to a debounced function will postpone it's execution - until after wait milliseconds have elapsed. Useful for implementing - behavior that should only happen after the input has stopped arriving. - For example: rendering a preview of a Markdown comment, recalculating a - layout after the window has stopped being resized... + Calling a debounced function will postpone its execution until after + wait milliseconds have elapsed since the last time the function + was invoked. Useful for implementing behavior that should only happen + after the input has stopped arriving. For example: rendering a + preview of a Markdown comment, recalculating a layout after the window + has stopped being resized...

 var lazyLayout = _.debounce(calculateLayout, 300);