diff --git a/src/utils.js b/src/utils.js index 5f340b37b..2cd423cd8 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,4 +1,12 @@ ;(function(window, undefined) { + + + window.delay = function(func, wait) { + var args = Array.prototype.slice.call(arguments, 2); + return setTimeout(function(){ return func.apply(null, args); }, wait); + }; + + /* Debounce and throttle functions taken from underscore.js */ window.debounce = function(func, wait, immediate) { var timeout;