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

Hotfix of remove method #19

Closed
wants to merge 1 commit into from
Closed

Conversation

logicalDust
Copy link
Contributor

Rare bug could happen when removing and linking element back to tree in index method. Index method was returning cached value instead of recomputing the index if the element had previously same cachedIndexVersion as new parent had childrenVersion. In this fix we are purging cachedIndexVersion in remove method as removed elements dont belong to any children collection anyway.

Rare bug could happen when removing and linking element back to tree in index method. Index method was returning cached value instead of recomputing the index if the element had previously same cachedIndexVersion as new parent had childrenVersion. In this fix we are purging cachedIndexVersion in remove method as removed elements doesnt belong to any children collection anyway.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 5fafe9f on logicalDust:patch-1 into bdaf345 on jsdom:master.

@logicalDust logicalDust deleted the patch-1 branch June 11, 2019 16:56
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.

None yet

2 participants