24 lines
589 B
JavaScript
24 lines
589 B
JavaScript
// Module ID: 5549
|
|
// Function ID: 47068
|
|
// Name: debounce
|
|
// Dependencies: []
|
|
|
|
// Module 5549 (debounce)
|
|
arg5.default = function debounce(arg0, arg1) {
|
|
return function() {
|
|
if (!timeout) {
|
|
const length = arguments.length;
|
|
const _Array = Array;
|
|
const array = new Array(length);
|
|
for (let num = 0; num < length; num = num + 1) {
|
|
array[num] = arguments[num];
|
|
}
|
|
const self = this;
|
|
arg0.apply(this, array);
|
|
const _setTimeout = setTimeout;
|
|
const timeout = setTimeout(() => {
|
|
let closure_2;
|
|
}, arg1);
|
|
}
|
|
};
|
|
};
|