Element doesnt need to have a combinator

This commit is contained in:
cloudhead 2010-02-25 17:55:12 -05:00
parent dbf7c5c30c
commit b84ec0b67f

View File

@ -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;
};