mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
default function: added error when used with css-guards. updated tests.
This commit is contained in:
@@ -19,12 +19,18 @@ tree.Ruleset.prototype = {
|
||||
}
|
||||
},
|
||||
eval: function (env) {
|
||||
var thisSelectors = this.selectors, selectors, selCnt, i;
|
||||
var thisSelectors = this.selectors, selectors,
|
||||
selCnt, i, defaultFunc = tree.defaultFunc;
|
||||
if (thisSelectors && (selCnt = thisSelectors.length)) {
|
||||
selectors = [];
|
||||
defaultFunc.error({
|
||||
type: "Syntax",
|
||||
message: "it is currently only allowed in parametric mixin guards,"
|
||||
});
|
||||
for (i = 0; i < selCnt; i++) {
|
||||
selectors.push(thisSelectors[i].eval(env));
|
||||
}
|
||||
defaultFunc.reset();
|
||||
}
|
||||
|
||||
var rules = this.rules ? this.rules.slice(0) : null,
|
||||
|
||||
Reference in New Issue
Block a user