Skip to content

Commit

Permalink
fix(addStyles): revert merged loops (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ciniawsky authored May 22, 2017
1 parent b9d18dd commit fbd04b1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/addStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,13 @@ function addStylesToDom (styles, options) {
if(domStyle) {
domStyle.refs++;

for(var j = 0; j < domStyle.parts.length && item.parts.length; j++) {
for(var j = 0; j < domStyle.parts.length; j++) {
domStyle.parts[j](item.parts[j]);
domStyle.parts.push(addStyle(item.parts[j], options));
}

// for(; j < item.parts.length; j++) {
// domStyle.parts.push(addStyle(item.parts[j], options));
// }
for(; j < item.parts.length; j++) {
domStyle.parts.push(addStyle(item.parts[j], options));
}
} else {
var parts = [];

Expand Down

0 comments on commit fbd04b1

Please sign in to comment.