Added a fix to prevent the completion callback from firing multiple times in Firefox...
authorJohn Resig <jeresig@gmail.com>
Fri, 20 Jul 2007 22:21:41 +0000 (22:21 +0000)
committerJohn Resig <jeresig@gmail.com>
Fri, 20 Jul 2007 22:21:41 +0000 (22:21 +0000)
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