fix IE 6 support

This commit is contained in:
Alexis Sellier
2011-11-12 14:06:40 +01:00
parent e35dc0efc0
commit e80847267b
2 changed files with 2 additions and 2 deletions

View File

@@ -802,7 +802,7 @@ less.Parser = function Parser(env) {
if (e) { return new(tree.Element)(c, e, i) }
if (c.value && c.value[0] === '&') {
if (c.value && c.value.charAt(0) === '&') {
return new(tree.Element)(c, null, i);
}
},

View File

@@ -184,7 +184,7 @@ tree.Ruleset.prototype = {
for (var i = 0; i < selector.elements.length; i++) {
el = selector.elements[i];
if (el.combinator.value[0] === '&') {
if (el.combinator.value.charAt(0) === '&') {
hasParentSelector = true;
}
if (hasParentSelector) afterElements.push(el);