diff --git a/app/coffee/utils.coffee b/app/coffee/utils.coffee index 04f47f8e..d829ef38 100644 --- a/app/coffee/utils.coffee +++ b/app/coffee/utils.coffee @@ -85,6 +85,10 @@ joinStr = (str, coll) -> return _.str.join(str, coll) +debounce = (wait, func) -> + return _.debounce(func, wait) + + taiga = @.taiga taiga.bindOnce = bindOnce taiga.mixOf = mixOf @@ -95,3 +99,4 @@ taiga.timeout = timeout taiga.scopeDefer = scopeDefer taiga.toString = toString taiga.joinStr = joinStr +taiga.debounce = debounce