Explorar o código

fix for js + async = false

Nicolas Cannasse %!s(int64=16) %!d(string=hai) anos
pai
achega
7c6725f89a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      std/haxe/Http.hx

+ 2 - 1
std/haxe/Http.hx

@@ -122,7 +122,8 @@ class Http {
 				me.onError("Http Error #"+r.status);
 			}
 		};
-		r.onreadystatechange = onreadystatechange;
+		if( async )
+			r.onreadystatechange = onreadystatechange;
 		var uri = postData;
 		if( uri != null )
 			post = true;