Merge pull request #820 from piouPiouM/fix-sprite_magic_selector

Fixed the sprite Magic Selectors
This commit is contained in:
Scott Davis 2012-03-29 05:23:11 -07:00
commit 4b126a7264

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]