lib/nano_css.rb in isomorfeus-preact-22.10.0.rc2 vs lib/nano_css.rb in isomorfeus-preact-22.11.0.rc1
- old
+ new
@@ -118,11 +118,11 @@
str = ''
postponed = []
decls.each do |prop, value|
if value.is_a?(Hash) && !value.is_a?(Array)
- postponed.push(prop)
+ postponed << prop
else
str += decl(prop, value)
end
end
@@ -235,22 +235,22 @@
pos = sel.index('&')
if pos
if parents.empty?
replaced_selector = sel.gsub(/&/, parent)
- result.push(replaced_selector)
+ result << replaced_selector
else
parents.each do |parent|
replaced_selector = sel.gsub(/&/, parent)
- result.push(replaced_selector)
+ result << replaced_selector
end
end
else
if parents.empty?
- result.push(sel)
+ result << sel
else
parents.each do |parent|
- result.push("#{parent} #{sel}")
+ result << "#{parent} #{sel}"
end
end
end
end