[jQuery] howto properly rebind hover
hello,
i am having problems to rebind the hover event on table-rows, the
unbinding works just fine but the hovering does not work anymore, the
hover does not get bound again.
snippet:
<code>
// hover
this.table.find('tbody
tr').unbind('hover').unbind('mouseover').unbind('mouseout').removeClass('gt-
hover')
.not('.gt-x').not('.gt-dirty').hover(function() {
$(this).addClass('gt-hover');
}, function() {
$(this).removeClass('gt-hover');
});
</code>
why does this code not work?
i have built a $.fn.debug function which outputs the current jquery-
chain, so i could check the chain is built properly. the hover() gets
executed on all rows as is should but it just does not fire
anymore ...
i have no clue, any hints appreciated!
kai