diff --git a/lib/compass/sass_extensions/functions/sprites.rb b/lib/compass/sass_extensions/functions/sprites.rb index b8e97d4c..08d981f9 100644 --- a/lib/compass/sass_extensions/functions/sprites.rb +++ b/lib/compass/sass_extensions/functions/sprites.rb @@ -110,7 +110,7 @@ module Compass::SassExtensions::Functions::Sprites unless VALID_SELECTORS.include?(selector.value) raise Sass::SyntaxError, "Invalid Selctor did you mean one of: #{VALID_SELECTORS.join(', ')}" end - Sass::Script::Bool.new map.send(:"has_#{selector.value}?", sprite) + Sass::Script::Bool.new map.send(:"has_#{selector.value}?", sprite.value) end Sass::Script::Functions.declare :sprite_has_selector, [:map, :sprite, :selector]