lib/sass/selector/simple.rb in sass-3.4.24 vs lib/sass/selector/simple.rb in sass-3.4.25
- old
+ new
@@ -70,9 +70,10 @@
# such as {Parent} or {Interpolation}, is used in unification.
# Since these selectors should be resolved
# by the time extension and unification happen,
# this exception will only ever be raised as a result of programmer error
def unify(sels)
+ return sels.first.unify([self]) if sels.length == 1 && sels.first.is_a?(Universal)
return sels if sels.any? {|sel2| eql?(sel2)}
sels_with_ix = Sass::Util.enum_with_index(sels)
if !is_a?(Pseudo) || (sels.last.is_a?(Pseudo) && sels.last.type == :element)
_, i = sels_with_ix.find {|sel, _| sel.is_a?(Pseudo)}
end