Skip to content
Browse files

Fixes #2010, fixes #1818: Shady dom mutations which trigger additiona…

…l mutations are now successfully enqueued.
  • Loading branch information...
1 parent fb52120 commit a26247b043ec9eb83f878f3fdb527455f29054dd @sorvell sorvell committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/mini/shady.html
View
5 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;
}
},

0 comments on commit a26247b

Please sign in to comment.
Something went wrong with that request. Please try again.