build-tools : upgrade less to v1.3.3
[platform/framework/web/web-ui-fw.git] / build-tools / lib / less / tree / value.js
1 (function (tree) {
2
3 tree.Value = function (value) {
4     this.value = value;
5     this.is = 'value';
6 };
7 tree.Value.prototype = {
8     eval: function (env) {
9         if (this.value.length === 1) {
10             return this.value[0].eval(env);
11         } else {
12             return new(tree.Value)(this.value.map(function (v) {
13                 return v.eval(env);
14             }));
15         }
16     },
17     toCSS: function (env) {
18         return this.value.map(function (e) {
19             return e.toCSS(env);
20         }).join(env.compress ? ',' : ', ');
21     }
22 };
23
24 })(require('../tree'));