Skip to content

Commit

Permalink
Merge "Clean up nodes observer before adding new ones for gr-diff"
Browse files Browse the repository at this point in the history
  • Loading branch information
taoalpha authored and Gerrit Code Review committed Apr 21, 2020
2 parents 01f123a + eb04236 commit 7df7aee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions polygerrit-ui/app/elements/diff/gr-diff/gr-diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,7 @@ class GrDiff extends mixinBehaviors( [
}

_handleRenderContent() {
this._unobserveIncrementalNodes();
this._incrementalNodeObserver = dom(this).observeNodes(info => {
const addedThreadEls = info.addedNodes.filter(isThreadEl);
// Removed nodes do not need to be handled because all this code does is
Expand Down

0 comments on commit 7df7aee

Please sign in to comment.