Skip to content

Commit

Permalink
Clean from debug
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jan 24, 2018
1 parent 62231cb commit 42c8cca
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/parser/model/ParserCss.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ module.exports = config => ({
let singleAtRule = 0;
let atRuleType = '';
let condition = '';
let sels = node.selectorText;
// keyText if for CSSKeyframeRule
let sels = node.selectorText || node.keyText;
const isSingleAtRule = singleAtRules.indexOf(type) >= 0;

// Check if the node is an at-rule
if (isSingleAtRule) {
singleAtRule = 1;
atRuleType = atRules[type];
condition = this.parseCondition(node);
console.log(node);
} else if (atRuleKeys.indexOf(type) >= 0) {
var subRules = this.parseNode(node);
condition = this.parseCondition(node);
Expand All @@ -120,7 +120,6 @@ module.exports = config => ({
subRule.mediaText = condition;
subRule.atRuleType = atRules[type];
}

result = result.concat(subRules);
}

Expand Down Expand Up @@ -167,8 +166,6 @@ module.exports = config => ({
});
}
}

console.log('Last PUSH', result[result.length - 1]);
}

return result;
Expand Down

0 comments on commit 42c8cca

Please sign in to comment.