Browse Source

Browser build fix.

Bruno Garcia 12 years ago
parent
commit
b791dc3e97
1 changed files with 3 additions and 3 deletions
  1. 3 3
      std/js/Browser.hx

+ 3 - 3
std/js/Browser.hx

@@ -67,11 +67,11 @@ class Browser {
 	 */
 	 */
 	public static function createXMLHttpRequest() : XMLHttpRequest
 	public static function createXMLHttpRequest() : XMLHttpRequest
 	{
 	{
-		if( __js__("typeof XMLHttpRequest") != "undefined" ) {
+		if( untyped __js__("typeof XMLHttpRequest") != "undefined" ) {
 			return new XMLHttpRequest();
 			return new XMLHttpRequest();
 		}
 		}
-		if( __js__("typeof ActiveXObject") != "undefined" ) {
-			return __new__("ActiveXObject","Microsoft.XMLHTTP");
+		if( untyped __js__("typeof ActiveXObject") != "undefined" ) {
+			return untyped __new__("ActiveXObject","Microsoft.XMLHTTP");
 		}
 		}
 		throw "Unable to create XMLHttpRequest object.";
 		throw "Unable to create XMLHttpRequest object.";
 	}
 	}