Nicolas Cannasse 14 年之前
父节点
当前提交
c3c5076f19
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/haxe/remoting/ExternalConnection.hx

+ 1 - 1
std/haxe/remoting/ExternalConnection.hx

@@ -70,7 +70,7 @@ class ExternalConnection implements Connection, implements Dynamic<Connection> {
 			data = flash.external.ExternalInterface.call("haxe.remoting.ExternalConnection.doCall",__data.name,__path.join("."),params);
 		#elseif js
 			var fobj : Dynamic = untyped window.document[__data.flash];
-			if( fobj == null ) fobj = untyped window.document.getElementById[__data.flash];
+			if( fobj == null ) fobj = untyped window.document.getElementById(__data.flash);
 			if( fobj == null ) throw "Could not find flash object '"+__data.flash+"'";
 			try	data = fobj.externalRemotingCall(__data.name,__path.join("."),params) catch( e : Dynamic ) {};
 		#end