Fix synchronous Ajax requests in IE. Reported by bphilippot (Closes #1097)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4990 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -306,14 +306,13 @@ OpenLayers.Ajax.Request = OpenLayers.Class(OpenLayers.Ajax.Base, {
|
|||||||
this.options.asynchronous);
|
this.options.asynchronous);
|
||||||
|
|
||||||
if (this.options.asynchronous) {
|
if (this.options.asynchronous) {
|
||||||
this.transport.onreadystatechange =
|
|
||||||
OpenLayers.Function.bind(this.onStateChange, this);
|
|
||||||
|
|
||||||
setTimeout(OpenLayers.Function.bind(
|
setTimeout(OpenLayers.Function.bind(
|
||||||
(function() {this.respondToReadyState(1)}),this), 10
|
(function() {this.respondToReadyState(1)}),this), 10
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.transport.onreadystatechange =
|
||||||
|
OpenLayers.Function.bind(this.onStateChange, this);
|
||||||
this.setRequestHeaders();
|
this.setRequestHeaders();
|
||||||
|
|
||||||
var body = this.options.postBody ? this.options.postBody
|
var body = this.options.postBody ? this.options.postBody
|
||||||
|
|||||||
Reference in New Issue
Block a user