Bug Tracker

Changeset 2429

Show
Ignore:
Timestamp:
07/20/07 22:21:41 (1 year ago)
Author:
jeresig
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/ajax/ajax.js

    r2428 r2429  
    623623        var onreadystatechange = function(isTimeout){ 
    624624            // The transfer is complete and the data is available, or the request timed out 
    625             if ( xml && (xml.readyState == 4 || isTimeout == "timeout") ) { 
     625            if ( !requestDone && xml && (xml.readyState == 4 || isTimeout == "timeout") ) { 
    626626                requestDone = true; 
    627627