carto/lib/less/tree/anonymous.js
cloudhead 1d9b95f9e6 Evaluate function calls properly.
- `fun(f())` is now possible
- Anonymous can take normal strings
- Tests for `%()`
2010-04-30 14:07:05 -04:00

12 lines
295 B
JavaScript

if (typeof(require) !== 'undefined') { var tree = require('less/tree') }
tree.Anonymous = function Anonymous(string) {
this.value = string.content || string;
};
tree.Anonymous.prototype = {
toCSS: function () {
return this.value;
},
eval: function () { return this }
};