Add self defined timeout function like setTimeout but with inverted arguments.
parent
a075d0048c
commit
7d77a6c9b5
|
@ -57,9 +57,14 @@ groupBy = (coll, pred) ->
|
|||
|
||||
return result
|
||||
|
||||
|
||||
timeout = (wait, continuation) ->
|
||||
return window.setTimeout(continuation, wait)
|
||||
|
||||
taiga = @.taiga
|
||||
taiga.bindOnce = bindOnce
|
||||
taiga.mixOf = mixOf
|
||||
taiga.trim = trim
|
||||
taiga.toggleText = toggleText
|
||||
taiga.groupBy = groupBy
|
||||
taiga.timeout = timeout
|
||||
|
|
Loading…
Reference in New Issue