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

Unwrap linkable objects passed back to parent #13

Open
danfinlay opened this issue Jul 18, 2019 · 2 comments
Open

Unwrap linkable objects passed back to parent #13

danfinlay opened this issue Jul 18, 2019 · 2 comments

Comments

@danfinlay
Copy link
Owner

danfinlay commented Jul 18, 2019

When a linkable object (function or object) is Proxied over capnode, and then the proxy is passed back to its parent by some method, it should be "unwrapped" to the original referenced object (vs wrapping the wrapped).

http://blog.ezyang.com/2013/03/what-is-a-membran/

Since objects can be mutated client-side, so we might need to detect changes in them, or we can just say capnode proxies are not truly mutable, only superfically locally.

@danfinlay
Copy link
Owner Author

A true test of object unwrapping: Can I pass my dom’s createElement along with another element reference, such that you can create new elements and append them to your permitted element?

Brings to light how properties are all synchronous but could be spoofed with getter/setter decorator functions which could trigger and reflect async updates.

That may be too hacky, but at least createElement and appendChild could be done with async-ified wrappers.

@danfinlay danfinlay changed the title Unwrap functions passed back to parent Unwrap linkable objects passed back to parent Oct 29, 2019
@danfinlay
Copy link
Owner Author

I've added a test for this on a branch.

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