Skip to content

Commit

Permalink
Fixes the sprite Magic Selectors.
Browse files Browse the repository at this point in the history
  • Loading branch information
piouPiouM committed Mar 29, 2012
1 parent b107ccb commit 5f74731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compass/sass_extensions/functions/sprites.rb
Expand Up @@ -110,7 +110,7 @@ def sprite_has_selector(map, sprite, selector)
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]
Expand Down

0 comments on commit 5f74731

Please sign in to comment.