Skip to content

Ensure getChildren returns an array#45

Merged
paf31 merged 1 commit into
purescript-contrib:masterfrom
ethul:topic/issue-44
Sep 24, 2015
Merged

Ensure getChildren returns an array#45
paf31 merged 1 commit into
purescript-contrib:masterfrom
ethul:topic/issue-44

Conversation

@ethul
Copy link
Copy Markdown
Contributor

@ethul ethul commented Sep 24, 2015

Resolves #44

When a single element is provided as a child to the createElement call, getChildren would return a non-array element. This PR ensures that an array is returned in all cases by constructing a result array using the React.Children build-in functions.

paf31 added a commit that referenced this pull request Sep 24, 2015
Ensure getChildren returns an array
@paf31 paf31 merged commit 6891b2e into purescript-contrib:master Sep 24, 2015
@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Sep 24, 2015

👍 Thanks!

@ethul
Copy link
Copy Markdown
Contributor Author

ethul commented Sep 24, 2015

Thank you!

On Thursday, September 24, 2015, Phil Freeman notifications@github.com
wrote:

[image: 👍] Thanks!


Reply to this email directly or view it on GitHub
#45 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants