Skip to content

Commit

Permalink
fix IE 6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Nov 12, 2011
1 parent e35dc0e commit e808472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/less/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},
Expand Down
2 changes: 1 addition & 1 deletion lib/less/tree/ruleset.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e808472

Please sign in to comment.