Permalink
Browse files

Revert "Support synchronous requests"

Summary:
According to D3356#8, this is evil even in `onunload`.
I think it's advantage of the library if it doesn't support evil.

This reverts commit rJX6bcce5.

Test Plan: None.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3384
  • Loading branch information...
1 parent 60248bc commit b2c0095e014a8c9190a0d3a4af82451e86b29f27 vrana committed Aug 25, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/lib/Request.js
View
@@ -142,7 +142,7 @@ JX.install('Request', {
this.getTimeout());
}
- xport.open(method, uri, this.getAsync());
+ xport.open(method, uri, true);
// Must happen after xport.open so that listeners can modify the transport
// Some transport properties can only be set after the transport is open
@@ -422,7 +422,6 @@ JX.install('Request', {
* @param string HTTP method, one of "POST" or "GET".
*/
method : 'POST',
- async : true,
file : null,
raw : false,

0 comments on commit b2c0095

Please sign in to comment.