From f83211c684b0a1031001c448ff7a4cfbac8c1c1f Mon Sep 17 00:00:00 2001 From: John Resig Date: Fri, 20 Jul 2007 22:21:41 +0000 Subject: [PATCH] Added a fix to prevent the completion callback from firing multiple times in Firefox on OSX (fixed bug #1406). --- src/ajax/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index fa047188a..4b1e9b0e2 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