Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Rewording.
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Oct 2, 2018
1 parent 9a6b7dc commit 3a2854e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/view/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ export default class Renderer {
// Since its corresponding DOM element will not be rerendered, new attributes will not be added
// to the DOM, so we need to mark it here to make sure its attributes gets updated. See #1427 for more
// detailed case study.
// Also there are cases where replaced element can be removed from view structure and then has
// its attributes changed. In such cases it si not present in `markedAttributes` and may be the same
// (`element.isSimilar()`) as the reused element. To prevent such cases we always mark reused element
// to have its attrbiutes rerenderd (#1560).
// Also there are cases where replaced element is removed from the view structure and then has
// its attributes changed or removed. In such cases the element will not be present in `markedAttributes`
// and also may be the same (`element.isSimilar()`) as the reused element not having its attributes updated.
// To prevent such situations we always mark reused element to have its attributes rerenderd (#1560).
this.markedAttributes.add( viewElement );
}

Expand Down

0 comments on commit 3a2854e

Please sign in to comment.