Added a fix to prevent the completion callback from firing multiple times in Firefox...
[jquery.git] / src / ajax / ajax.js
index fa04718..4b1e9b0 100644 (file)
@@ -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