OpenLayers OpenLayers

Ticket #702: synchronous_request.patch

File synchronous_request.patch, 0.6 kB (added by fredj, 1 year ago)
  • lib/OpenLayers/Ajax.js

    old new  
    211211      var body = this.options.postBody ? this.options.postBody : parameters; 
    212212      this.transport.send(this.options.method == 'post' ? body : null); 
    213213 
     214      /* Force Firefox to handle ready state 4 for synchronous requests */ 
     215      if (!this.options.asynchronous && this.transport.overrideMimeType) { 
     216          this.onStateChange(); 
     217      } 
     218 
    214219    } catch (e) { 
    215220      this.dispatchException(e); 
    216221    }