In some cases changing the layout doesn't force the sprite hash to change, so we have to make the layout part of the hash.

This commit is contained in:
Chris Eppstein 2011-09-19 07:40:29 -07:00
parent 8b33471229
commit ce853df6bf

View File

@ -82,6 +82,7 @@ module Compass
sum = Digest::MD5.new
sum << SPRITE_VERSION
sum << path
sum << layout
images.each do |image|
[:relative_file, :height, :width, :repeat, :spacing, :position, :digest].each do |attr|
sum << image.send(attr).to_s