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

on<Attribute>Change: newValue and oldValue params with object #279

Open
vbourgeois opened this issue Sep 2, 2014 · 0 comments
Open

on<Attribute>Change: newValue and oldValue params with object #279

vbourgeois opened this issue Sep 2, 2014 · 0 comments

Comments

@vbourgeois
Copy link

I noticed that for complex attributes such as object or array, the newValue and oldValue parameters of the onChange method are exactly the same and pointing on the same object (so the new one).
I don't know if it is the expected behavior, but it could be useful as a user to have a copy of the object before the change in the oldValue parameter.

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