Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
21 lines
416 B
JavaScript
21 lines
416 B
JavaScript
// Module ID: 7114
|
|
// Function ID: 7115
|
|
// Dependencies: []
|
|
// Exports: throttle
|
|
|
|
// Module 7114
|
|
|
|
export function throttle(arg0, arg1) {
|
|
closure_0 = arg0;
|
|
closure_1 = arg1;
|
|
return function() {
|
|
if (null == timeout) {
|
|
const self = this;
|
|
closure_0.apply(this, tmp);
|
|
const _setTimeout = setTimeout;
|
|
timeout = setTimeout(() => {
|
|
c2 = undefined;
|
|
}, closure_1);
|
|
}
|
|
};
|
|
}
|