duplicate function

This commit is contained in:
Scott Davis 2011-02-22 20:43:38 -05:00
parent fb61e54389
commit 3feca48f51
2 changed files with 1 additions and 17 deletions

View File

@ -1,7 +1,7 @@
PATH PATH
remote: . remote: .
specs: specs:
compass (0.11.beta.2.c521908) compass (0.11.beta.2.fb61e54)
chunky_png (~> 0.12.0) chunky_png (~> 0.12.0)
sass (>= 3.1.0.alpha.218) sass (>= 3.1.0.alpha.218)

View File

@ -108,22 +108,6 @@ module Compass::SassExtensions::Functions::Sprites
end end
output_png output_png
end end
def uniqueness_hash
@uniqueness_hash ||= begin
sum = Digest::MD5.new
sum << SPRITE_VERSION
sum << path
images.each do |image|
[:relative_file, :height, :width, :repeat, :spacing, :position, :digest].each do |attr|
sum << image[attr].to_s
end
end
sum.hexdigest[0...10]
end
@uniqueness_hash
end
end end
# Creates a SpriteMap object. A sprite map, when used in a property is the same # Creates a SpriteMap object. A sprite map, when used in a property is the same