From: John Resig Date: Fri, 20 Jul 2007 22:21:41 +0000 (+0000) Subject: Added a fix to prevent the completion callback from firing multiple times in Firefox... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=f83211c684b0a1031001c448ff7a4cfbac8c1c1f;p=jquery.git Added a fix to prevent the completion callback from firing multiple times in Firefox on OSX (fixed bug #1406). --- diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index fa04718..4b1e9b0 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -622,7 +622,7 @@ jQuery.extend({ // Wait for a response to come back var onreadystatechange = function(isTimeout){ // The transfer is complete and the data is available, or the request timed out - if ( xml && (xml.readyState == 4 || isTimeout == "timeout") ) { + if ( !requestDone && xml && (xml.readyState == 4 || isTimeout == "timeout") ) { requestDone = true; // clear poll interval