Last change
on this file since 256 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
-
Property svn:executable set to
*
|
File size:
575 bytes
|
Line | |
---|
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('less/tree')); |
---|
Note: See
TracBrowser
for help on using the repository browser.