Less joins. More responding.
This commit is contained in:
parent
027ebdd8c4
commit
472456f344
@ -141,7 +141,7 @@ module Compass::SassExtensions::Functions::Sprites
|
|||||||
|
|
||||||
# The on-the-disk filename of the sprite
|
# The on-the-disk filename of the sprite
|
||||||
def filename
|
def filename
|
||||||
File.join(File.join(Compass.configuration.images_path, "#{path}.png"))
|
File.join(Compass.configuration.images_path, "#{path}.png")
|
||||||
end
|
end
|
||||||
|
|
||||||
# saves the sprite for later retrieval
|
# saves the sprite for later retrieval
|
||||||
@ -152,7 +152,7 @@ module Compass::SassExtensions::Functions::Sprites
|
|||||||
# All the full-path filenames involved in this sprite
|
# All the full-path filenames involved in this sprite
|
||||||
def image_filenames
|
def image_filenames
|
||||||
image_names.map do |image_name|
|
image_names.map do |image_name|
|
||||||
File.join(File.join(Compass.configuration.images_path, image_name))
|
File.join(Compass.configuration.images_path, image_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -177,6 +177,10 @@ module Compass::SassExtensions::Functions::Sprites
|
|||||||
sprite_url(self).value
|
sprite_url(self).value
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def respond_to?(meth)
|
||||||
|
super || @evaluation_context.respond_to?(meth)
|
||||||
|
end
|
||||||
|
|
||||||
def method_missing(meth, *args, &block)
|
def method_missing(meth, *args, &block)
|
||||||
if @evaluation_context.respond_to?(meth)
|
if @evaluation_context.respond_to?(meth)
|
||||||
@evaluation_context.send(meth, *args, &block)
|
@evaluation_context.send(meth, *args, &block)
|
||||||
|
Loading…
Reference in New Issue
Block a user