removeClass ---- addClass --- when onClick in effect

removeClass ---- addClass --- when onClick in effect

I have a web page that has a UL and LI and on the LI entries I have the class='memList'  - I also have a jquery method $(".memList").ondblclick.....    when the web page is first displayed things work perfectly....
 
Now, there I also have some code, which also works, that will perform a removeClass("memList") and then addClass("memListSelected") so the user can no longer double click on the item... I can see the HTML getting modified in FireBug - so changing the class name works also...
 
Problem,  if I do double click on the item that has class memListSelected, it still invokes the double click method for the class name "memList".     It seems like jquery sets up when the page gets loaded but doesn't make the right changed when I removed the memList class....  if I check this after removing the class, this no longer has the class but if I double click it still invoked the memList function...
 
I got around the problem by coding - is there any jquery function that I can invoke to perform the setup again?
 

$(

".memList").dblclick(

function() {

      if

(!$(this).hasClass("memList")) return;

      
Any ideas?????????????????????????