Added a fix to prevent the completion callback from firing multiple times in Firefox on OSX (fixed bug #1406).

This commit is contained in:
John Resig 2007-07-20 22:21:41 +00:00
parent c47f6f8f52
commit f83211c684

View 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