lib/beautiful-css/engine.rb in beautiful-css-0.0.3 vs lib/beautiful-css/engine.rb in beautiful-css-0.0.4
- old
+ new
@@ -49,10 +49,10 @@
groups = {}
rules.keys.each do |prop|
rules[prop].keys.each do |selector|
val = rules[prop][selector]
prop_val = "{ #{prop}:#{val} }"
- groups[prop_val] = [] if !( rules.has_key? prop_val)
+ groups[prop_val] = [] if !( groups.has_key? prop_val)
groups[prop_val] << selector
end
end
groups
end