fixed mixin call matching for multi-selector parent...

This commit is contained in:
seven-phases-max
2013-10-29 08:04:38 +04:00
parent 0213579de4
commit 05ef5cd0ac

View File

@@ -172,7 +172,7 @@ tree.Ruleset.prototype = {
if (match = selector.match(rule.selectors[j])) {
if (selector.elements.length > rule.selectors[j].elements.length) {
Array.prototype.push.apply(rules, rule.find(
new(tree.Selector)(selector.elements.slice(1)), self));
new(tree.Selector)(selector.elements.slice(rule.selectors[j].elements.length)), self));
} else {
rules.push(rule);
}