jQuery ajouter et supprimer $(window).scroll(function()?

Comment puis-je supprimer puis ajouter le $(window).scroll? J'ai besoin de stocker une variable et de le réutiliser après un certain événement.

//here i store my var
$(window).scroll(function(){
    myScroll = $(window).scrollTop()  
});

$("#itemUnbind").click(function(){
    //here i need to remove the listener        
});

$("#itemBind").click(function(){
    //here i need to add listener again     
});

Merci.

InformationsquelleAutor Dee | 2010-11-29