lib/roadie/stylesheet.rb in roadie-3.0.2 vs lib/roadie/stylesheet.rb in roadie-3.0.3
- old
+ new
@@ -62,10 +62,11 @@
StyleBlock.new(selector, properties)
end
def setup_parser(css)
parser = CssParser::Parser.new
- parser.add_block! css
+ # CssParser::Parser#add_block! mutates input parameter
+ parser.add_block! css.dup
parser
end
end
end