を削除してから追加するにはどうすればよい$(window).scroll
ですか? 変数を保存し、何らかのイベントの後に再利用する必要があります。
// 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
});
ありがとうございました。