Translator accepts array

This commit is contained in:
Vit Brunner
2013-06-17 18:46:16 +01:00
parent 8bfbb29e9f
commit c38b7e57cd
2 changed files with 7 additions and 7 deletions
@@ -1,10 +1,10 @@
angular.module("sideBySide").factory("transformer", () ->
# Transform translations
#
# @param translations [...Object] Translation with 'meta' and 'content' keys
# @param translations [Array] Translations with 'meta' and 'content' keys
# @throw No poems or uneven number of verses
# @return [Array] Translations transformed into row-based format
return (translations...) ->
return (translations) ->
# Check whether all translations have same number of verses
#
# @param translations [array] Translations to check