Skip to content
Permalink
Browse files
Added a fix to prevent the completion callback from firing multiple t…
…imes in Firefox on OSX (fixed bug #1406).
  • Loading branch information
jeresig committed Jul 20, 2007
1 parent c47f6f8 commit f83211c
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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

0 comments on commit f83211c

Please sign in to comment.