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

17 lines
337 B
JavaScript

node.Directive = function Directive(name, value) {
this.name = name;
if (Array.isArray(value)) {
this.rules = value;
} else {
this.value = value;
}
};
node.Directive.prototype.toCSS = function () {
if (this.rules) {
} else {
return this.name + ' ' + this.value.toCSS() + ';\n';
}
};