revert [10347] which causes double requests in certain conditions, discussed in #2065, r=ahocevar
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10426 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -161,8 +161,18 @@ OpenLayers.Request = {
|
||||
}
|
||||
};
|
||||
|
||||
request.send(config.data);
|
||||
|
||||
// send request (optionally with data) and return
|
||||
// call in a timeout for asynchronous requests so the return is
|
||||
// available before readyState == 4 for cached docs
|
||||
if(config.async === false) {
|
||||
request.send(config.data);
|
||||
} else {
|
||||
window.setTimeout(function(){
|
||||
if (request._aborted !== true) {
|
||||
request.send(config.data);
|
||||
}
|
||||
}, 0);
|
||||
}
|
||||
return request;
|
||||
},
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
//
|
||||
fCleanTransport(oRequest);
|
||||
// Uncomment this block if you need a fix for IE cache
|
||||
/**/
|
||||
/*
|
||||
// BUGFIX: IE - cache issue
|
||||
if (!oRequest._object.getResponseHeader("Date")) {
|
||||
// Save object to cache
|
||||
@@ -192,7 +192,7 @@
|
||||
// Return now - wait until re-sent request is finished
|
||||
return;
|
||||
};
|
||||
/**/
|
||||
*/
|
||||
// BUGFIX: IE - memory leak in interrupted
|
||||
if (bIE && bAsync)
|
||||
window.detachEvent("onunload", fOnUnload);
|
||||
|
||||
Reference in New Issue
Block a user