Event handlers are tied to Node, so it doesn't matter if this Node has its own class name. You will need .unbind()those events manually or better use the jQuerys method .off().
, , , Node, ,
$(this).css('marginTop','+=20px').removeClass('example').off();
Node. , jQuerys Event namespacing,
$('.example').on( 'mouseenter.myNamespace'
function () {
$(this).css('background','red');
}
).on('mouseleave.myNamespace'
function() {
$(this).css('background','yellow');
}
);
, .myNamespace
$(this).css('marginTop','+=20px').removeClass('example').off('.myNamespace');