'use strict';
var debounce = function (delay, fn) {
var timeout;
return function () {
var that = this;
var args = arguments;
clearTimeout(timeout);
timeout = setTimeout(function () {
fn.apply(that, arguments);
}, delay);
};
};
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.