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

struggling to understand how to use _diff #17

Open
pedalpete opened this issue Feb 5, 2015 · 1 comment
Open

struggling to understand how to use _diff #17

pedalpete opened this issue Feb 5, 2015 · 1 comment

Comments

@pedalpete
Copy link

I've been looking through the _diff array, and from what I can see, I'm getting an object of the entries currently in my observ-array.

The info I'm hoping to get from the _diff is how the array changed, but I don't see how to get that.

For instance, after a 'push' function, I'd like to see what the newly added item is, and on a 'splice' I'd like to be able to see which item was removed. Is this possible with _diff?

@Raynos
Copy link
Owner

Raynos commented Feb 5, 2015

It should be. The _diff contains an array of splice operations, I think

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

2 participants