Element constructor defaults to an empty Combinator, if none specified
This commit is contained in:
parent
e9c6645b2c
commit
095523bf59
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user