desmelled the binding class

This commit is contained in:
Scott Davis 2011-10-25 15:55:06 -04:00
parent 98775ea1ec
commit 16ff623732
2 changed files with 1 additions and 5 deletions

View File

@ -105,7 +105,7 @@ module Compass
# Generates the Sass for this sprite file
def self.content_for_images(uri, name, skip_overrides = false)
binder = Compass::Sprites::Binding.new(:name => name, :uri => uri, :skip_overrides => skip_overrides)
binder = Compass::Sprites::Binding.new(:name => name, :uri => uri, :skip_overrides => skip_overrides, :sprite_names => sprite_names(uri))
CONTENT_TEMPLATE.result(binder.get_binding)
end
end

View File

@ -3,10 +3,6 @@ module Compass
module Sprites
class Binding < OpenStruct
def sprite_names
@sprite_names ||= Compass::SpriteImporter.sprite_names(uri)
end
def get_binding
binding
end