Fix a bug in ruby 1.9
This commit is contained in:
parent
8c7223575a
commit
d5fa05bc7d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user