This commit is contained in:
cloudhead
2010-02-23 13:39:05 -05:00
commit ad66408b9f
19 changed files with 655 additions and 0 deletions

12
lib/less/node/selector.js Normal file
View File

@@ -0,0 +1,12 @@
node.Selector = function Selector(elements) { this.elements = elements };
node.Selector.prototype.toCSS = function () {
return this.elements.map(function (e) {
if (typeof(e) === 'string') {
return ' ' + e.trim();
} else {
return e.toCSS();
}
}).join('');
};