desmelled the binding class
This commit is contained in:
parent
98775ea1ec
commit
16ff623732
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user