duplicate function
This commit is contained in:
parent
fb61e54389
commit
3feca48f51
@ -1,7 +1,7 @@
|
||||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
compass (0.11.beta.2.c521908)
|
||||
compass (0.11.beta.2.fb61e54)
|
||||
chunky_png (~> 0.12.0)
|
||||
sass (>= 3.1.0.alpha.218)
|
||||
|
||||
|
@ -108,22 +108,6 @@ module Compass::SassExtensions::Functions::Sprites
|
||||
end
|
||||
output_png
|
||||
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
|
||||
|
||||
# Creates a SpriteMap object. A sprite map, when used in a property is the same
|
||||
|
Loading…
Reference in New Issue
Block a user