Fixes the sprite Magic Selectors.

This commit is contained in:
Mehdi Kabab 2012-03-29 13:42:10 +02:00
parent b107ccbb8e
commit 5f7473126a

View File

@ -110,7 +110,7 @@ module Compass::SassExtensions::Functions::Sprites
unless VALID_SELECTORS.include?(selector.value) unless VALID_SELECTORS.include?(selector.value)
raise Sass::SyntaxError, "Invalid Selctor did you mean one of: #{VALID_SELECTORS.join(', ')}" raise Sass::SyntaxError, "Invalid Selctor did you mean one of: #{VALID_SELECTORS.join(', ')}"
end end
Sass::Script::Bool.new map.send(:"has_#{selector.value}?", sprite) Sass::Script::Bool.new map.send(:"has_#{selector.value}?", sprite.value)
end end
Sass::Script::Functions.declare :sprite_has_selector, [:map, :sprite, :selector] Sass::Script::Functions.declare :sprite_has_selector, [:map, :sprite, :selector]