mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
init
This commit is contained in:
12
lib/less/node/selector.js
Normal file
12
lib/less/node/selector.js
Normal 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('');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user