Apparently camelCase is all the rage these days

This commit is contained in:
Vit Brunner
2013-06-16 10:57:08 +01:00
parent 9e2f937466
commit 72e5280e44
3 changed files with 12 additions and 12 deletions
@@ -2,15 +2,15 @@ angular.module("sideBySide").factory("jsonReader", () ->
return (source) ->
parsed = eval('(' + source + ')')
new_content = []
newContent = []
for verse in parsed.content
if typeof(verse) == "string"
new_content.push({ section: "", text: verse })
newContent.push({ section: "", text: verse })
else
if "section" not of verse
verse.section = ""
new_content.push(verse)
newContent.push(verse)
parsed.content = new_content
parsed.content = newContent
return parsed
)