aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-07-20 22:21:41 +0000
committerJohn Resig <jeresig@gmail.com>2007-07-20 22:21:41 +0000
commitf83211c684b0a1031001c448ff7a4cfbac8c1c1f (patch)
tree635728670d48a1ecba15824c1d2aa6652afa9a71 /src/ajax
parentc47f6f8f523c8add478fbf5570a67015426f5b86 (diff)
downloadjquery-f83211c684b0a1031001c448ff7a4cfbac8c1c1f.tar.gz
jquery-f83211c684b0a1031001c448ff7a4cfbac8c1c1f.zip
Added a fix to prevent the completion callback from firing multiple times in Firefox on OSX (fixed bug #1406).
Diffstat (limited to 'src/ajax')
-rw-r--r--src/ajax/ajax.js2
1 files changed, 1 insertions, 1 deletions
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