Skip to content

Commit 3987708

Browse files
author
Steven Orvell
committed
Improve comment more
1 parent fa1469a commit 3987708

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

lib/mixins/property-effects.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,9 +1442,17 @@
14421442
}
14431443

14441444
// NOTE: We ensure clients either enable or flush as appropriate. This
1445-
// handles two corner cases: (1) clients flush properly when
1446-
// connected/enabled before the host enables, (2) clients enable properly
1447-
// when not connected/enabled when the host flushes.
1445+
// handles two corner cases:
1446+
// (1) clients flush properly when connected/enabled before the host
1447+
// enables; e.g.
1448+
// (a) Templatize stamps with no properties and does not flush and
1449+
// (b) the instance is inserted into dom and
1450+
// (c) then the instance flushes.
1451+
// (2) clients enable properly when not connected/enabled when the host
1452+
// flushes; e.g.
1453+
// (a) a template is runtime stamped and not yet connected/enabled
1454+
// (b) a host sets a property, causing stamped dom to flush
1455+
// (c) the stamped dom enables.
14481456
__enableOrFlushClients() {
14491457
let clients = this.__dataPendingClients;
14501458
if (clients) {

0 commit comments

Comments
 (0)