Files
less.js/lib/less/tree/quoted.js
cloudhead 4399c9c965 make strings behave like other nodes.
- rename 'content' to 'value'
2010-07-25 16:41:05 -04:00

17 lines
319 B
JavaScript

(function (tree) {
tree.Quoted = function (str, content) {
this.value = content || '';
this.quote = str.charAt(0);
};
tree.Quoted.prototype = {
toCSS: function () {
return this.quote + this.value + this.quote;
},
eval: function () {
return this;
}
};
})(require('less/tree'));