Skip to content

Commit

Permalink
simplify slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed May 12, 2015
1 parent 5d59eb7 commit f5cdede
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/mini/shady.html
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,9 @@
// returns the host that's the top of this host's distribution tree
function getTopDistributingHost(host) {
while (host && hostNeedsRedistribution(host)) {
var last = host;
var host = host.domHost;
host = host.domHost;
}
return host || last;
return host;
}

// Return true if a host's children includes
Expand All @@ -418,7 +417,7 @@
for (var i=0, c; i < c$.length; i++) {
c = c$[i];
if (c.localName === 'content') {
return true;
return host.domHost;
}
}
}
Expand Down

0 comments on commit f5cdede

Please sign in to comment.