Explorar el Código

fix for js + async = false

Nicolas Cannasse hace 16 años
padre
commit
7c6725f89a
Se han modificado 1 ficheros con 2 adiciones y 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;