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

Fix buffer notification on changes discard #53

Merged
merged 2 commits into from
Dec 3, 2019

Conversation

tniezurawski
Copy link
Collaborator

I realized that the buffer doesn't notify about changes on the discardBufferedChanges method.
I added a test that shows that. A computed property that depends on the buffered property is not notified about the change and it doesn't recompute on discardBufferedChanges action.

@tniezurawski tniezurawski self-assigned this Dec 2, 2019
// Discard buffer changes and verify
await click('button#discard-changes');
assert.dom('#buffer-firstname').hasText('stefan');
assert.dom('#buffer-firstname-backward').hasText('nafets');
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without a fix, the test fails here. A computed property that transforms buffered firstName property to be spelled backward is not notified about the change (on discardBufferedChanges action).

So the last change is still there (kemot).

@lukemelia lukemelia merged commit ee4c757 into master Dec 3, 2019
@lukemelia lukemelia deleted the fix-buffer-notification-on-changes-discard branch December 3, 2019 05:34
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