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 f83211c684b0a1031001c448ff7a4cfbac8c1c1f
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit f83211c

Please sign in to comment.
You can’t perform that action at this time.