Skip to content

Commit

Permalink
Improve comment more
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed May 23, 2017
1 parent fa1469a commit 3987708
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/mixins/property-effects.html
Original file line number Diff line number Diff line change
Expand Up @@ -1442,9 +1442,17 @@
}

// NOTE: We ensure clients either enable or flush as appropriate. This
// handles two corner cases: (1) clients flush properly when
// connected/enabled before the host enables, (2) clients enable properly
// when not connected/enabled when the host flushes.
// handles two corner cases:
// (1) clients flush properly when connected/enabled before the host
// enables; e.g.
// (a) Templatize stamps with no properties and does not flush and
// (b) the instance is inserted into dom and
// (c) then the instance flushes.
// (2) clients enable properly when not connected/enabled when the host
// flushes; e.g.
// (a) a template is runtime stamped and not yet connected/enabled
// (b) a host sets a property, causing stamped dom to flush
// (c) the stamped dom enables.
__enableOrFlushClients() {
let clients = this.__dataPendingClients;
if (clients) {
Expand Down

0 comments on commit 3987708

Please sign in to comment.