Bug with Autocompleter not canceling pending Ajax requests causing potential race condition for onComplete logic.
//I added this function to the Ajax.Autocompleter class clearPendingRequests: function(){ this.pendingRequests.each(function(el){if(el) {el.transport.abort();}}); this.pendingRequests.clear(); } //then updating the last line of the getUpdatedChoices method to be this.clearPendingRequests(); this.pendingRequests.push(new Ajax.Request(this.url, this.options)); //I also added some simple initialization of the array in the initialize method this.pendingRequests = new Array(); this worked to cancel pending requests before they had a chance to come back to the onComplete method. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---