• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

infernojs / inferno / 7173
100%
master: 93%

Build:
Build:
LAST BUILD BRANCH: update-path-to-regexp
DEFAULT BRANCH: master
Ran 13 Oct 2018 12:18PM UTC
Jobs 1
Files 83
Run time 35s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
7173

push

travis-ci

Havunen
inferno-clone-vnode doesn't include children in cloned node (#1394)

Fixes #1393.

inferno-clone-vnode does not currently clone existing children of a
vnode. Instead, we are required to specify the children to include.
While this works, it seems redundant and does not behave in the same
way as React.

This patch will allow the children of a node to automatically be cloned if no children
props are specified in the second parameter and no children are
specified in the third parameter. Furthermore, this patch will flatten
the list of children. This will allow all children to be accounted for.
For example:

```
const itemList = [{name: 'a'}, {name: 'b'}];
<Wrapper>
    <StaticItem1 />
    <StaticItem2 />
    {itemList.map(x => <StaticItem name={x.name} />)}
</Wrapper>
```

Signed-off-by: Will Johnson <wjohnson@whamcloud.com>

2300 of 2679 branches covered (85.85%)

15 of 15 new or added lines in 1 file covered. (100.0%)

3517 of 3707 relevant lines covered (94.87%)

1880.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7173.1 13 Oct 2018 12:18PM UTC 0
94.87
Travis Job 7173.1
Source Files on build 7173
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7173
  • efb213ee on github
  • Prev Build on dev (#7172)
  • Next Build on dev (#7174)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc