Skip to content
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

Support empty arrays in Model.attributes() #20

Open
RyanMcDonald opened this issue Dec 2, 2015 · 0 comments
Open

Support empty arrays in Model.attributes() #20

RyanMcDonald opened this issue Dec 2, 2015 · 0 comments

Comments

@RyanMcDonald
Copy link

If a model has an empty array as an attribute, the attributes() function will ignore it and it will be undefined in the returned object. I believe the issue is here, where it only sets the property if there are items in the array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant