Autocompete issue

Autocompete issue

I have configured an autocomplete as follows:

  1.  $("#userlookup").autocomplete({
  2.              delay: 500,
  3.                  source: function( request, response ) {
  4.                    request.listtype = distribution.LISTTYPE_BCC;
  5.                      request.group = distribution.GROUP_CECIDS;
  6.                      request.maxRows=10;
  7.                      lookupEmails(request,response);
  8.                  },
  9.                  minLength: 2,
  10.                  select: add2Distribution
  11.            });

  12. function lookupEmails(request,callback){
  13. var maxr = (request.maxRows?request.maxRows:1);
  14.     $.ajax({
  15.             url: path_controller,
  16.             dataType: "json",
  17.             data: {
  18.                 funct: "lookupemails",
  19.                 maxRows: maxr,
  20.                 query: request.term,
  21.                 group: request.group
  22.             },
  23.             success: function( data ) {
  24.               callback($.map( data, function( item ) {
  25.                     return {
  26.                         label: item.personal?item.personal:item.email.personal,
  27.                         value: "",
  28.                         listtype: request.listtype,
  29.                         group: request.group,
  30.                         emailobj: item
  31.                     };
  32.               }));
  33.     },
  34.             error: function(xhr,err){
  35.                   alert("ERROR:\nreadyState: "+xhr.readyState+"\nstatus: "+xhr.status+"\nresponseText: "+xhr.responseText);
  36.             }
  37.         });
  38.     }

  39.  function add2Distribution(event,item,buildingconfirmed){
  40. if (event && !item)
  41. item = event;
  42. if (item.item)
  43. item = item.item;
  44.         if (item){

  45. var row = get_rowArray(item);
  46.         $("#dist"+item.listtype+"_datatable").dataTable().fnAddData([row]);
  47.            distribution.add(item.listtype,item.group,item.emailobj);
  48.         }
  49.         }
  50.     }
Everything works perfectly the "first time through".  The user types, the " lookupEmails" ajax returns the data, the user makes a selection, the selection data is passed to " add2Distribution", and the autocomplete is cleared.

The user then wants to add a second selection:
The user types, the " lookupEmails" ajax returns the data, the user makes a selection... nothing.  I put in break points to confirm that my "add2Distribution" method is not being called.

This worked in 1.8; but I'm guessing the "bug fixes" in 1.9.2 changed the behavior?

Do I need to somehow "reset" the autocomplete object after calling my add2Distribution the first time?  I tried adding a return and that didn't seem to do anything.

Any ideas?

THANKS!