mirror of
https://github.com/less/less.js.git
synced 2026-01-23 06:07:56 -05:00
parenthesized node init
This commit is contained in:
16
lib/less/tree/paren.js
Normal file
16
lib/less/tree/paren.js
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
(function (tree) {
|
||||
|
||||
tree.Paren = function (node) {
|
||||
this.value = node;
|
||||
};
|
||||
tree.Paren.prototype = {
|
||||
toCSS: function (env) {
|
||||
return '(' + this.value.toCSS(env) + ')';
|
||||
},
|
||||
eval: function (env) {
|
||||
return new(tree.Paren)(this.value.eval(env));
|
||||
}
|
||||
};
|
||||
|
||||
})(require('../tree'));
|
||||
Reference in New Issue
Block a user