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

Cannot set proxy properties on nested fields #86

Open
pajtai opened this issue Mar 21, 2014 · 3 comments
Open

Cannot set proxy properties on nested fields #86

pajtai opened this issue Mar 21, 2014 · 3 comments

Comments

@pajtai
Copy link
Member

pajtai commented Mar 21, 2014

the following example doesn't seem to work

aModel.set('foo.bar',  new masseuse.ProxyProperty('bar', anotherModel));
@pajtai pajtai added the bug label Mar 21, 2014
@Duder-onomy
Copy link
Contributor

I seem to be able to set them correctly.
Example from a grasshopper binder:

appBinders.js - line:19

value: masseuse.ProxyProperty('fields.' + rivets.model.field._id, rivets.model.view.model)

@pajtai
Copy link
Member Author

pajtai commented Mar 21, 2014

@Duder-onomy not proxying a nested field but setting a nested field to a proxy.

So I wonder if the following would work for you:

value: {
    viewModel : masseuse.ProxyProperty('fields.' + rivets.model.field._id, rivets.model.view.model)
}

@pajtai
Copy link
Member Author

pajtai commented May 8, 2014

setting this to high priority, since it cropped up again

altmind added a commit to grasshopper-cms/grasshopper-admin that referenced this issue Jul 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants