This repository was archived by the owner on Oct 19, 2018. It is now read-only.
Commit 1be83c7
committed
[React::Children] Fix the spec
1. React::Children is considered to be a Enumberable, so only #count method should be defined.
2. React::Children#each will returns a Enumerator, with #size returned nil when cannot count lazily, and in our case, it could be counted lazily.1 parent 54a66d7 commit 1be83c7
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
721 | | - | |
| 721 | + | |
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
| |||
0 commit comments