| changeset 602 | e16a97fb364a |
| 601:d334a616c023 | 602:e16a97fb364a |
|---|---|
1 YUI.add("yui-throttle",function(e,t){ |
|
2 /*! Based on work by Simon Willison: http://gist.github.com/292562 */ |
|
3 ;e.throttle=function(t,n){n=n?n:e.config.throttleTime||150;if(n===-1)return function(){t.apply(this,arguments)};var r=e.Lang.now();return function(){var i=e.Lang.now();i-r>n&&(r=i,t.apply(this,arguments))}}},"@VERSION@",{requires:["yui-base"]}); |