give Element.toCSS a pre-space, useful when building new selectors

This commit is contained in:
cloudhead 2010-02-28 01:05:27 -05:00
parent 35af01d29a
commit cd764a2d8c

View File

@ -4,7 +4,7 @@ node.Element = function Element(combinator, value) {
this.value = value.trim(); this.value = value.trim();
}; };
node.Element.prototype.toCSS = function () { node.Element.prototype.toCSS = function () {
var css = (this.combinator ? this.combinator.toCSS() : '') + this.value; var css = (this.combinator ? this.combinator.toCSS() : ' ') + this.value;
return css; return css;
}; };