dont cache in custom

This commit is contained in:
Scott Davis 2011-09-10 16:47:10 -04:00
parent ec90cf515f
commit 3e5b3cfbf6

View File

@ -45,10 +45,9 @@ module Compass::SassExtensions::Functions::ImageSize
private private
def image_demensions(image_file) def image_demensions(image_file)
options[:custom] ||= {} options[:compass] ||= {}
options[:custom][:compass] ||= {} options[:compass][:image_dimensions] ||= {}
options[:custom][:compass][:image_dimensions] ||= {} options[:compass][:image_dimensions][image_file.value] = ImageProperties.new(image_path(image_file.value)).size
options[:custom][:compass][:image_dimensions][image_file.value] = ImageProperties.new(image_path(image_file.value)).size
end end
def image_path(image_file) def image_path(image_file)