Code style fixes
parent
8480e6354b
commit
d71d1f2594
|
@ -43,6 +43,7 @@ mixOf = (base, mixins...) ->
|
||||||
trim = (data, char) ->
|
trim = (data, char) ->
|
||||||
return _.str.trim(data, char)
|
return _.str.trim(data, char)
|
||||||
|
|
||||||
|
|
||||||
toggleText = (element, texts) ->
|
toggleText = (element, texts) ->
|
||||||
nextTextPosition = element.data('nextTextPosition')
|
nextTextPosition = element.data('nextTextPosition')
|
||||||
nextTextPosition = 0 if not nextTextPosition? or nextTextPosition >= texts.length
|
nextTextPosition = 0 if not nextTextPosition? or nextTextPosition >= texts.length
|
||||||
|
@ -50,6 +51,7 @@ toggleText = (element, texts) ->
|
||||||
element.data('nextTextPosition', nextTextPosition + 1)
|
element.data('nextTextPosition', nextTextPosition + 1)
|
||||||
element.text(text)
|
element.text(text)
|
||||||
|
|
||||||
|
|
||||||
groupBy = (coll, pred) ->
|
groupBy = (coll, pred) ->
|
||||||
result = {}
|
result = {}
|
||||||
for item in coll
|
for item in coll
|
||||||
|
@ -61,6 +63,7 @@ groupBy = (coll, pred) ->
|
||||||
timeout = (wait, continuation) ->
|
timeout = (wait, continuation) ->
|
||||||
return window.setTimeout(continuation, wait)
|
return window.setTimeout(continuation, wait)
|
||||||
|
|
||||||
|
|
||||||
taiga = @.taiga
|
taiga = @.taiga
|
||||||
taiga.bindOnce = bindOnce
|
taiga.bindOnce = bindOnce
|
||||||
taiga.mixOf = mixOf
|
taiga.mixOf = mixOf
|
||||||
|
|
Loading…
Reference in New Issue