Add debounce function to taiga utils collection.

stable
Andrey Antukh 2014-06-27 17:16:27 +02:00
parent 30338000b9
commit b3fff4dd06
1 changed files with 5 additions and 0 deletions

View File

@ -85,6 +85,10 @@ joinStr = (str, coll) ->
return _.str.join(str, coll) return _.str.join(str, coll)
debounce = (wait, func) ->
return _.debounce(func, wait)
taiga = @.taiga taiga = @.taiga
taiga.bindOnce = bindOnce taiga.bindOnce = bindOnce
taiga.mixOf = mixOf taiga.mixOf = mixOf
@ -95,3 +99,4 @@ taiga.timeout = timeout
taiga.scopeDefer = scopeDefer taiga.scopeDefer = scopeDefer
taiga.toString = toString taiga.toString = toString
taiga.joinStr = joinStr taiga.joinStr = joinStr
taiga.debounce = debounce