summaryrefslogtreecommitdiff
path: root/lib/dojo/debounce.js
blob: 414e3f0e1c1aca788ef4360ee545c210379088f5 (plain)
1
2
3
4
5
6
7
8
/*
	Copyright (c) 2004-2016, The JS Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

//>>built
define("dojo/debounce",[],function(){return function(cb,_1){var _2;return function(){if(_2){clearTimeout(_2);}var _3=this;var a=arguments;_2=setTimeout(function(){cb.apply(_3,a);},_1);};};});