/app/node_modules/less/lib/less/tree/value.js
https://bitbucket.org/jorritposthuma/inventory-counter-mobile · JavaScript · 24 lines · 22 code · 2 blank · 0 comment · 2 complexity · 6a009a5b26cf9da2e75df41987e6587e MD5 · raw file
- (function (tree) {
- tree.Value = function (value) {
- this.value = value;
- this.is = 'value';
- };
- tree.Value.prototype = {
- eval: function (env) {
- if (this.value.length === 1) {
- return this.value[0].eval(env);
- } else {
- return new(tree.Value)(this.value.map(function (v) {
- return v.eval(env);
- }));
- }
- },
- toCSS: function (env) {
- return this.value.map(function (e) {
- return e.toCSS(env);
- }).join(env.compress ? ',' : ', ');
- }
- };
- })(require('../tree'));