Commit bbee866f by Archawat L.

add function regDelayFn

parent 9c89fa29
function regDelayFn(functionName, functionCall, time) {
if (!time)
time = 100;
var VAR_NAME = 'delay_function_' + functionName;
if (window[VAR_NAME])
window.clearTimeout(window[VAR_NAME]);
window[VAR_NAME] = window.setTimeout(functionCall, time);
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment