Fixes the sprite Magic Selectors.
This commit is contained in:
parent
b107ccbb8e
commit
5f7473126a
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user