diff --git a/app/coffee/utils.coffee b/app/coffee/utils.coffee index 16ff483f..9c0bcf94 100644 --- a/app/coffee/utils.coffee +++ b/app/coffee/utils.coffee @@ -43,6 +43,7 @@ mixOf = (base, mixins...) -> trim = (data, char) -> return _.str.trim(data, char) + toggleText = (element, texts) -> nextTextPosition = element.data('nextTextPosition') nextTextPosition = 0 if not nextTextPosition? or nextTextPosition >= texts.length @@ -50,6 +51,7 @@ toggleText = (element, texts) -> element.data('nextTextPosition', nextTextPosition + 1) element.text(text) + groupBy = (coll, pred) -> result = {} for item in coll @@ -61,6 +63,7 @@ groupBy = (coll, pred) -> timeout = (wait, continuation) -> return window.setTimeout(continuation, wait) + taiga = @.taiga taiga.bindOnce = bindOnce taiga.mixOf = mixOf