Code style fixes
parent
8480e6354b
commit
d71d1f2594
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue