Last active
October 1, 2015 14:28
-
-
Save ChristianPeters/2008205 to your computer and use it in GitHub Desktop.
selectivizr does not support ajax. These listeners add live support for the CSS :hover pseudo selector for links and buttons, so that they are styled in IE < 9 even if they are dynamically injected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ -> | |
$('body') | |
.on 'mouseenter', 'a, button, input[type=submit]', -> | |
$(this).addClass('slvzr-hover') | |
.on 'mouseleave', 'a, button, input[type=submit]', -> | |
$(this).removeClass('slvzr-hover') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment