diff --git a/lib/compass/sprites.rb b/lib/compass/sprites.rb index eed1468e..38aa002b 100644 --- a/lib/compass/sprites.rb +++ b/lib/compass/sprites.rb @@ -15,7 +15,9 @@ module Compass end def sprites(path, name, create = false) - @@sprites = {} if @@sprites.nil? + if !defined?(@@sprites) || @@sprites.nil? + @@sprites = {} + end index = "#{path}/#{name}" images = @@sprites[index] if images