This repository was archived by the owner on Jul 6, 2020. It is now read-only.
Commit 19ec005
committed
Adds the ability for child nodes to be an array of nodes.
Prior, something like:
l.ul([l.li(null, 'First element'), liItems.map(item => l.li(null, item))])
would not be possible. The programmer's intent is clear, but lmth did not
support it without needing to concat the first li element and the array of lis
manually. Now, something like the above example works automatically.
This is a major change.1 parent beddc27 commit 19ec005
3 files changed
Lines changed: 19 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments