Skip to content

Commit

Permalink
made sibling combinator slightly faster
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 11, 2012
1 parent c7bc285 commit cc6f019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/DOM/CSS.pm
Expand Up @@ -222,7 +222,7 @@ sub _sibling {
if ($immediate) { $found = $self->_combinator($selectors, $e, $tree) }

# "~" (preceding sibling)
else { $found //= $self->_combinator($selectors, $e, $tree) }
else { return 1 if $self->_combinator($selectors, $e, $tree) }
}

return;
Expand Down

0 comments on commit cc6f019

Please sign in to comment.