cleaned up some over zelious cacheing that was causing inconsistancy problems
This commit is contained in:
parent
eb4870b685
commit
89869db09c
@ -5,11 +5,9 @@ module Compass
|
|||||||
SPRITE_IMPORTER_REGEX = %r{((.+/)?([^\*.]+))/(.+?)\.png}
|
SPRITE_IMPORTER_REGEX = %r{((.+/)?([^\*.]+))/(.+?)\.png}
|
||||||
|
|
||||||
def self.load(uri, options)
|
def self.load(uri, options)
|
||||||
Compass.quick_cache "Sprite_map:#{uri}#{options.inspect}", 5 do
|
klass = Compass::SpriteImporter.new
|
||||||
klass = Compass::SpriteImporter.new
|
klass.uri, klass.options = uri, options
|
||||||
klass.uri, klass.options = uri, options
|
klass
|
||||||
klass
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(options ={})
|
def initialize(options ={})
|
||||||
@ -77,7 +75,7 @@ module Compass
|
|||||||
|
|
||||||
# Returns the Glob of image files for this sprite
|
# Returns the Glob of image files for this sprite
|
||||||
def files
|
def files
|
||||||
@files ||= Dir[File.join(Compass.configuration.images_path, uri)].sort
|
Dir[File.join(Compass.configuration.images_path, uri)].sort
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns an Array of image names without the file extension
|
# Returns an Array of image names without the file extension
|
||||||
|
Loading…
Reference in New Issue
Block a user