mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
don't re-eval ruleset
This commit is contained in:
@@ -7,6 +7,8 @@ tree.Ruleset = function (selectors, rules) {
|
||||
};
|
||||
tree.Ruleset.prototype = {
|
||||
eval: function (env) {
|
||||
if (this.evaled) { return this }
|
||||
|
||||
var rules = [];
|
||||
|
||||
this.rules.forEach(function (rule) {
|
||||
@@ -17,6 +19,8 @@ tree.Ruleset.prototype = {
|
||||
}
|
||||
});
|
||||
this.rules = rules;
|
||||
this.evaled = true;
|
||||
|
||||
return this;
|
||||
},
|
||||
match: function (args) {
|
||||
|
||||
Reference in New Issue
Block a user