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

Convert ObjectProxy and ArrayProxy #16776

Merged
merged 1 commit into from
Jun 27, 2018
Merged

Convert ObjectProxy and ArrayProxy #16776

merged 1 commit into from
Jun 27, 2018

Conversation

krisselden
Copy link
Contributor

No description provided.

@rwjblue rwjblue requested a review from mmun June 25, 2018 23:02
@runspired
Copy link
Contributor

@krisselden
Copy link
Contributor Author

@runspired why?

@krisselden
Copy link
Contributor Author

@runspired also, why did you link to the ManyArray examples? as far as I know this doesn't affect them? Do you expect in the proxy case it proxies the set back to the content? as far as I know that was not the old behavior, the old behavior for a CP without a setter for set is to redefine the property as a plain prop then set it, which seems extremely weird for a proxy.

@krisselden
Copy link
Contributor Author

you could just set content to an empty array instead of null, I didn't think null worked. I'd prefer actually making null content act like an empty array than to do the setter clobbers with value prop

@runspired
Copy link
Contributor

@krisselden linked the ManyArray because I wasn't sure if MutableArray was part of the ArrayProxy family of things or not. I can implement the change to use an empty-array, and backport it to 2.18 so that it doesn't bite users mixing versions.

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

Successfully merging this pull request may close these issues.

4 participants