Cross Reference:
xref
: /
yui3
/
build
/
yui
/
yui-throttle-min.js
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
yui-throttle-min.js revision 0bc189b2acbd7c4b5af63eded0c4289e224676b7
YUI
.
add
(
"yui-throttle"
,
function
(a){
/*! Based on work by Simon Willison:
http://gist.github.com/292562
*/
a.
throttle
=
function
(c,b){b=(b)?b:(a.
config
.
throttleTime
||
150
);
if
(b===-
1
){
return
(
function
(){c.
apply
(
null
,
arguments
);});}
var
d=(
new
Date
()).
getTime
();
return
(
function
(){
var
e=(
new
Date
()).
getTime
();
if
(e-d>b){d=e;c.
apply
(
null
,
arguments
);}});};},
"@VERSION@"
,{
requires
:[
"yui-base"
]});