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:
609 bytes
|
Line | |
---|
1 | (function (tree) { |
---|
2 | |
---|
3 | tree.Expression = function (value) { this.value = value }; |
---|
4 | tree.Expression.prototype = { |
---|
5 | eval: function (env) { |
---|
6 | if (this.value.length > 1) { |
---|
7 | return new(tree.Expression)(this.value.map(function (e) { |
---|
8 | return e.eval(env); |
---|
9 | })); |
---|
10 | } else if (this.value.length === 1) { |
---|
11 | return this.value[0].eval(env); |
---|
12 | } else { |
---|
13 | return this; |
---|
14 | } |
---|
15 | }, |
---|
16 | toCSS: function (env) { |
---|
17 | return this.value.map(function (e) { |
---|
18 | return e.toCSS(env); |
---|
19 | }).join(' '); |
---|
20 | } |
---|
21 | }; |
---|
22 | |
---|
23 | })(require('less/tree')); |
---|
Note: See
TracBrowser
for help on using the repository browser.