]>
git.wh0rd.org - tt-rss.git/blob - lib/dojo/throttle.js
2 Copyright (c) 2004-2016, The JS Foundation All Rights Reserved.
3 Available via Academic Free License >= 2.1 OR the modified BSD license.
4 see: http://dojotoolkit.org/license for details
8 define("dojo/throttle",[],function(){return function(cb
,_1
){var _2
=true;return function(){if(!_2
){return;}_2
=false;cb
.apply(this,arguments
);setTimeout(function(){_2
=true;},_1
);};};});