Closed GoogleCodeExporter closed 9 years ago
AAAah.. Ok, so the mouse over/out/click events for the scroll list have a
filter:
if ( "LI" == e.target.nodeName.toUpperCase() ) {
And if you have addEmphasis 'On', then the text has been wrapped in an 'em' tag
- which likely means that it doesn't get past the filter, and it shouldn't.
But it might be that check for an EM tag and then replacing 'e' with the parent
LI tag would do the trick.
Original comment by aru...@anm.org
on 4 Jul 2011 at 7:21
Indeed, replacing the initial filter in the event handler with:
var $target = $(e.target);
if ( $target.is("EM") ) {
$target = $target.parent();
}
if ( $target.is("LI") )
and replacing uses of e.target with $target as appropriate
correctly handles the mouseover mouseout and click events.
Original comment by aru...@anm.org
on 4 Jul 2011 at 7:40
I suppose that checking:
if ($target.parent().is("LI")) {
instead of looking for the EM, would be more robust in case the method for
emphasizing was changed to a span with a fancy style instead of an EM tag.
Original comment by aru...@anm.org
on 4 Jul 2011 at 7:47
Thanks for your detailed suggestions, I have commited a fix based on your ideas
:)
Original comment by thetoolman
on 21 May 2012 at 5:45
Original issue reported on code.google.com by
aru...@anm.org
on 4 Jul 2011 at 5:15