From a26247b043ec9eb83f878f3fdb527455f29054dd Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Wed, 15 Jul 2015 16:33:46 -0700 Subject: [PATCH] Fixes #2010, fixes #1818: Shady dom mutations which trigger additional mutations are now successfully enqueued. --- src/mini/shady.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mini/shady.html b/src/mini/shady.html index cb9b7137d3..8d96fc7b57 100644 --- a/src/mini/shady.html +++ b/src/mini/shady.html @@ -129,6 +129,10 @@ _finishDistribute: function() { // compose self if (this._useContent) { + // note: it's important to mark this clean before distribution + // so that attachment that provokes additional distribution (e.g. + // adding something to your parentNode) works + this.shadyRoot._distributionClean = true; if (hasInsertionPoint(this.shadyRoot)) { this._composeTree(); } else { @@ -146,7 +150,6 @@ } } this.shadyRoot._hasDistributed = true; - this.shadyRoot._distributionClean = true; } },