Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fixed the sprite Magic Selectors #820

merged 1 commit into from Mar 29, 2012


None yet
2 participants

piouPiouM commented Mar 29, 2012

The sprite magic selectors fail to detect the files with selector variants like my-file_hover because an instance of Sass::Script::String is passed to the corresponding helper (i.e. Compass::SassExtensions::Sprites::ImageMethods#has_hover?) instead of a String.
Therefore, this helper asks to Compass::SassExtensions::Sprites::ImageMethods#image_for if "my-file"_hover exists — note the double quotes — (which is not the case, of course).

@scottdavis scottdavis added a commit that referenced this pull request Mar 29, 2012

@scottdavis scottdavis Merge pull request #820 from piouPiouM/fix-sprite_magic_selector
Fixed the sprite Magic Selectors

@scottdavis scottdavis merged commit 4b126a7 into Compass:stable Mar 29, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment