Element constructor defaults to an empty Combinator, if none specified

This commit is contained in:
cloudhead 2010-03-03 20:37:40 -05:00
parent e9c6645b2c
commit 095523bf59

View File

@ -1,7 +1,7 @@
if (typeof(window) === 'undefined') { var tree = require(require('path').join(__dirname, '..', '..', 'less', 'tree')); }
tree.Element = function Element(combinator, value) {
this.combinator = combinator;
this.combinator = combinator || new(tree.Combinator);
this.value = value.trim();
};
tree.Element.prototype.toCSS = function () {