Skip to content

Commit

Permalink
Fixes #2010, fixes #1818: Shady dom mutations which trigger additiona…
Browse files Browse the repository at this point in the history
…l mutations are now successfully enqueued.
  • Loading branch information
Steven Orvell committed Jul 15, 2015
1 parent fb52120 commit a26247b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mini/shady.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -146,7 +150,6 @@
}
}
this.shadyRoot._hasDistributed = true;
this.shadyRoot._distributionClean = true;
}
},

Expand Down

0 comments on commit a26247b

Please sign in to comment.