carto/lib/less/node/selector.js
cloudhead ad66408b9f init
2010-02-23 13:39:05 -05:00

13 lines
316 B
JavaScript

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('');
};