From ce853df6bf98665b8a370a78222e0c3380bae0b0 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Mon, 19 Sep 2011 07:40:29 -0700 Subject: [PATCH] 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. --- lib/compass/sass_extensions/sprites/sprite_methods.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/compass/sass_extensions/sprites/sprite_methods.rb b/lib/compass/sass_extensions/sprites/sprite_methods.rb index 437137a6..b15477da 100644 --- a/lib/compass/sass_extensions/sprites/sprite_methods.rb +++ b/lib/compass/sass_extensions/sprites/sprite_methods.rb @@ -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