Show:

Throttles a call to a method based on the time between calls. This method is attached to the Y object and is <a href="../classes/YUI.html#method_throttle">documented there</a>.

var fn = Y.throttle(function() {
                                counter++;
                            });
                            
                            for (i; i< 35000; i++) {
                                out++;
                                fn();
                            }