Skip to content

Commit

Permalink
Clarify all elements between changes must apply mixing.
Browse files Browse the repository at this point in the history
Fixes #4914
  • Loading branch information
kevinpschaaf committed Nov 2, 2017
1 parent 2d95217 commit 7360f42
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/legacy/mutable-data-behavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
* (e.g. `this.notifyPath('items')`) to update the tree. Note that all
* elements that wish to be updated based on deep mutations must apply this
* mixin or otherwise skip strict dirty checking for objects/arrays.
* Specifically, any elements in the binding tree between the source of a
* mutation and the consumption of it must apply this behavior or enable the
* `Polymer.OptionalMutableDataBehavior`.
*
* In order to make the dirty check strategy configurable, see
* `Polymer.OptionalMutableDataBehavior`.
Expand Down Expand Up @@ -102,6 +105,9 @@
* (e.g. `this.notifyPath('items')`) to update the tree. Note that all
* elements that wish to be updated based on deep mutations must apply this
* mixin or otherwise skip strict dirty checking for objects/arrays.
* Specifically, any elements in the binding tree between the source of a
* mutation and the consumption of it must enable this behavior or apply the
* `Polymer.OptionalMutableDataBehavior`.
*
* While this behavior adds the ability to forgo Object/Array dirty checking,
* the `mutableData` flag defaults to false and must be set on the instance.
Expand Down
6 changes: 6 additions & 0 deletions lib/mixins/mutable-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
* (e.g. `this.notifyPath('items')`) to update the tree. Note that all
* elements that wish to be updated based on deep mutations must apply this
* mixin or otherwise skip strict dirty checking for objects/arrays.
* Specifically, any elements in the binding tree between the source of a
* mutation and the consumption of it must apply this mixin or enable the
* `Polymer.OptionalMutableData` mixin.
*
* In order to make the dirty check strategy configurable, see
* `Polymer.OptionalMutableData`.
Expand Down Expand Up @@ -132,6 +135,9 @@
* (e.g. `this.notifyPath('items')`) to update the tree. Note that all
* elements that wish to be updated based on deep mutations must apply this
* mixin or otherwise skip strict dirty checking for objects/arrays.
* Specifically, any elements in the binding tree between the source of a
* mutation and the consumption of it must enable this mixin or apply the
* `Polymer.MutableData` mixin.
*
* While this mixin adds the ability to forgo Object/Array dirty checking,
* the `mutableData` flag defaults to false and must be set on the instance.
Expand Down

0 comments on commit 7360f42

Please sign in to comment.