Commit f83211c6 authored by John Resig's avatar John Resig

Added a fix to prevent the completion callback from firing multiple times in...

Added a fix to prevent the completion callback from firing multiple times in Firefox on OSX (fixed bug #1406).
parent c47f6f8f
...@@ -622,7 +622,7 @@ jQuery.extend({ ...@@ -622,7 +622,7 @@ jQuery.extend({
// Wait for a response to come back // Wait for a response to come back
var onreadystatechange = function(isTimeout){ var onreadystatechange = function(isTimeout){
// The transfer is complete and the data is available, or the request timed out // 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; requestDone = true;
// clear poll interval // clear poll interval
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment