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

Now cloning __props__ and changed order in 'with' #130

Merged
merged 1 commit into from
Jan 20, 2016

Conversation

Kanaye
Copy link
Collaborator

@Kanaye Kanaye commented Jan 20, 2016

Cloning the props property of contexts to prevent it from being
overwritten e.g. with new Views and changed the order of execution in the
'with'-data-querie to first push the context and then modify it.

This solves the problem that e.g. the view-data-query overrides the $view-property of all views (including none views like the application context).
Here an example visualising the problem

I have tested it and thought about if it could have negative side effects.
I didn't found anything.

Closes #129.

Cloning the __props__ property of contexts to prevent it from being
overwritten e.g. with new Views and changed the order of execution in the
'with'-data-querie to first push the context and then modify it.
@astoilkov
Copy link
Owner

This is a great catch.

astoilkov added a commit that referenced this pull request Jan 20, 2016
Now cloning __props__ and changed order in 'with'
@astoilkov astoilkov merged commit 4c4ccbc into astoilkov:master Jan 20, 2016
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.

2 participants