mirror of
https://github.com/wassname/side-by-side.git
synced 2026-10-03 12:50:24 +08:00
Fewer parentheses
This commit is contained in:
1 parent
83fbe5d538
commit
fe8c134920
17 files changed
+100
-108
No files matched your search
@@ -1,4 +1,4 @@
|
||||
angular.module("sideBySide").factory("jsonReader", () ->
|
||||
angular.module("sideBySide").factory("jsonReader", ->
|
||||
# Read json poem
|
||||
#
|
||||
# For sample input, see:
|
||||
@@ -10,7 +10,7 @@ angular.module("sideBySide").factory("jsonReader", () ->
|
||||
parsed = eval('(' + source + ')')
|
||||
|
||||
for i,verse of parsed.content
|
||||
if typeof(verse) == "string"
|
||||
if typeof verse == "string"
|
||||
parsed.content[i] = { section: "", text: verse }
|
||||
else
|
||||
verse.section = "" if "section" not of verse
|
||||
|
||||
Reference in new issue
Block a user