|
|
|
@ -45,7 +45,13 @@ tree.mixin.Definition.prototype = {
|
|
|
|
|
context = { frames: [this, frame].concat(env.frames) };
|
|
|
|
|
|
|
|
|
|
return new(tree.Ruleset)(null, this.rules.map(function (rule) {
|
|
|
|
|
if (rule.rules) {
|
|
|
|
|
return new(tree.Ruleset)(rule.selectors, rule.rules.map(function (r) {
|
|
|
|
|
return new(tree.Rule)(r.name, r.value.eval(context));
|
|
|
|
|
}));
|
|
|
|
|
} else {
|
|
|
|
|
return new(tree.Rule)(rule.name, rule.value.eval(context));
|
|
|
|
|
}
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|