From 2367b9b9be36e161cb577c8d920e1e1bba0ffb88 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Sat, 10 Sep 2011 16:38:36 -0400 Subject: [PATCH] dont cache --- lib/compass/sass_extensions/functions/image_size.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/compass/sass_extensions/functions/image_size.rb b/lib/compass/sass_extensions/functions/image_size.rb index d3f4336a..a2ff7420 100644 --- a/lib/compass/sass_extensions/functions/image_size.rb +++ b/lib/compass/sass_extensions/functions/image_size.rb @@ -45,8 +45,7 @@ module Compass::SassExtensions::Functions::ImageSize private def image_demensions(image_file) - @image_demensions ||= {} - @image_demensions[image_file.value] ||= ImageProperties.new(image_path(image_file.value)).size + ImageProperties.new(image_path(image_file.value)).size end def image_path(image_file)