Version 3.17.2
Show:

yui-throttle Module

Throttles a call to a method based on the time between calls. This method is attached to the Y object and is documented there.

var fn = Y.throttle(function() {
    counter++;
});

for (i; i< 35000; i++) {
    out++;
    fn();
}