Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
flexi-xu committed Mar 28, 2017
1 parent 6821d3d commit 547350e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/builder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/builder.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ class exports.Builder
element.raw wrapCDATA obj
else
element.txt obj
else if Array.isArray obj
# fix issue #119
for own index, child of obj
for key, entry of child
element = render(element.ele(key), entry).up()
else
for own key, child of obj
# Case #1 Attribute
Expand Down

0 comments on commit 547350e

Please sign in to comment.