Fix a bug in ruby 1.9
This commit is contained in:
parent
8c7223575a
commit
d5fa05bc7d
@ -15,7 +15,9 @@ module Compass
|
|||||||
end
|
end
|
||||||
|
|
||||||
def sprites(path, name, create = false)
|
def sprites(path, name, create = false)
|
||||||
@@sprites = {} if @@sprites.nil?
|
if !defined?(@@sprites) || @@sprites.nil?
|
||||||
|
@@sprites = {}
|
||||||
|
end
|
||||||
index = "#{path}/#{name}"
|
index = "#{path}/#{name}"
|
||||||
images = @@sprites[index]
|
images = @@sprites[index]
|
||||||
if images
|
if images
|
||||||
|
Loading…
Reference in New Issue
Block a user