Fix a bug in ruby 1.9

This commit is contained in:
Chris Eppstein 2010-11-29 14:36:12 -08:00
parent 8c7223575a
commit d5fa05bc7d

View File

@ -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