src/cm/media/js/lib/yui/yui3-3.15.0/build/yui-throttle/yui-throttle-min.js
author gibus
Mon, 10 Mar 2014 15:19:48 +0100
changeset 602 e16a97fb364a
permissions -rw-r--r--
Use YUI 3.15
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
602
e16a97fb364a Use YUI 3.15
gibus
parents:
diff changeset
     1
YUI.add("yui-throttle",function(e,t){
e16a97fb364a Use YUI 3.15
gibus
parents:
diff changeset
     2
/*! Based on work by Simon Willison: http://gist.github.com/292562 */
e16a97fb364a Use YUI 3.15
gibus
parents:
diff changeset
     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"]});