mirror of
https://github.com/less/less.js.git
synced 2026-02-03 11:35:08 -05:00
17 lines
397 B
JavaScript
17 lines
397 B
JavaScript
(function (tree) {
|
|
|
|
tree.assignment = function (key, val) {
|
|
this.key = key;
|
|
this.value = val;
|
|
};
|
|
tree.assignment.prototype = {
|
|
toCSS: function () {
|
|
return this.key + (this.value.toCSS ? this.value.toCSS() : this.value);
|
|
},
|
|
eval: function (env) {
|
|
if (this.value.eval) { this.value = this.value.eval(env) }
|
|
return this;
|
|
}
|
|
};
|
|
|
|
})(require('less/tree')); |