Skip to content

Ensure getChildren returns an array #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 24, 2015

Conversation

ethul
Copy link
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
Contributor

paf31 commented Sep 24, 2015

👍 Thanks!

@ethul
Copy link
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