Element doesnt need to have a combinator
This commit is contained in:
parent
dbf7c5c30c
commit
b84ec0b67f
@ -4,7 +4,7 @@ node.Element = function Element(combinator, value) {
|
||||
this.value = value.trim();
|
||||
};
|
||||
node.Element.prototype.toCSS = function () {
|
||||
var css = this.combinator.toCSS() + this.value;
|
||||
var css = (this.combinator ? this.combinator.toCSS() : '') + this.value;
|
||||
return css;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user