removed another instance cache in the importer that could be problematic

This commit is contained in:
Scott Davis 2011-06-09 16:28:10 -04:00
parent ab5d6e51d9
commit f248c22ab1

View File

@ -81,7 +81,7 @@ module Compass
# Returns an Array of image names without the file extension
def sprite_names
@sprite_names ||= files.collect do |file|
files.collect do |file|
filename = File.basename(file, '.png')
unless VAILD_FILE_NAME =~ filename
raise Compass::Error, "Sprite file names must be legal css identifiers. Please rename #{File.basename(file)}"