lib/sass/selector/simple.rb in sass-3.3.0.alpha.222 vs lib/sass/selector/simple.rb in sass-3.3.0.alpha.224

- old
+ new

@@ -82,10 +82,10 @@ def unify(sels) return sels if sels.any? {|sel2| eql?(sel2)} sels_with_ix = Sass::Util.enum_with_index(sels) _, i = if self.is_a?(Pseudo) || self.is_a?(SelectorPseudoClass) - sels_with_ix.find {|sel, _| sel.is_a?(Pseudo) && (sels.last.final? || sels.last.type == :element)} + sels_with_ix.find {|sel, _| sel.is_a?(Pseudo) && (sels.last.type == :element)} else sels_with_ix.find {|sel, _| sel.is_a?(Pseudo) || sel.is_a?(SelectorPseudoClass)} end return sels + [self] unless i return sels[0...i] + [self] + sels[i..-1]