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(){

//then updating the last line of the getUpdatedChoices method to be

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 

Reply via email to