Skip to content

Commit

Permalink
cleaned up some over zelious cacheing that was causing inconsistancy …
Browse files Browse the repository at this point in the history
…problems
  • Loading branch information
scottdavis committed Jun 9, 2011
1 parent eb4870b commit 89869db
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/compass/sprite_importer.rb
Expand Up @@ -5,11 +5,9 @@ class SpriteImporter < Sass::Importers::Base
SPRITE_IMPORTER_REGEX = %r{((.+/)?([^\*.]+))/(.+?)\.png}

def self.load(uri, options)
Compass.quick_cache "Sprite_map:#{uri}#{options.inspect}", 5 do
klass = Compass::SpriteImporter.new
klass.uri, klass.options = uri, options
klass
end
klass = Compass::SpriteImporter.new
klass.uri, klass.options = uri, options
klass
end

def initialize(options ={})
Expand Down Expand Up @@ -77,7 +75,7 @@ def path

# Returns the Glob of image files for this sprite
def files
@files ||= Dir[File.join(Compass.configuration.images_path, uri)].sort
Dir[File.join(Compass.configuration.images_path, uri)].sort
end

# Returns an Array of image names without the file extension
Expand Down

0 comments on commit 89869db

Please sign in to comment.