dont cache
This commit is contained in:
parent
2792ea3be4
commit
2367b9b9be
@ -45,8 +45,7 @@ module Compass::SassExtensions::Functions::ImageSize
|
|||||||
private
|
private
|
||||||
|
|
||||||
def image_demensions(image_file)
|
def image_demensions(image_file)
|
||||||
@image_demensions ||= {}
|
ImageProperties.new(image_path(image_file.value)).size
|
||||||
@image_demensions[image_file.value] ||= ImageProperties.new(image_path(image_file.value)).size
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def image_path(image_file)
|
def image_path(image_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user