moodle_local_treestudyplan/amd/build/util/debounce.min.js

3 lines
460 B
JavaScript
Raw Normal View History

define("local_treestudyplan/util/debounce",["exports"],(function(_exports){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.debounce=function(func,wait,immediate){let timeout;return function(){let context=this,args=arguments,callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout((function(){timeout=null,immediate||func.apply(context,args)}),wait),callNow&&func.apply(context,args)}}}));
2023-08-19 17:54:40 +02:00
//# sourceMappingURL=debounce.min.js.map