Skip to content

Conversation

@cherifGsoul
Copy link
Member

Fix event dispatching when an item gets mutated with 0 integer value:

const order = new ObservableArray([0, 1]);
canReflect.onPatches(order, (patches) => {
       console.log(order[1]); // -> 0
});
order[1] = 0;

Fixes #79

@cherifGsoul cherifGsoul requested a review from phillipskevin May 19, 2020 20:30
Copy link
Contributor

@phillipskevin phillipskevin left a comment

Choose a reason for hiding this comment

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

Looks good.

@cherifGsoul cherifGsoul merged commit 1c50a7d into master May 19, 2020
@cherifGsoul cherifGsoul deleted the zero-indx-dispatch-index-event branch May 19, 2020 22:11
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.

Events for mutation with 0 integer value are disptached

3 participants