Code style fixes

stable
David Barragán Merino 2014-06-26 13:46:17 +02:00
parent 8480e6354b
commit d71d1f2594
1 changed files with 3 additions and 0 deletions

View File

@ -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