Procházet zdrojové kódy

Merge pull request #4718 from flipflophhj/development

Accomodate js-flatten use in ExternalConnection
Simon Krajewski před 9 roky
rodič
revize
15c79eb5fd
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      std/haxe/remoting/ExternalConnection.hx

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

@@ -61,7 +61,11 @@ class ExternalConnection implements Connection implements Dynamic<Connection> {
 		var params = escapeString(s.toString());
 		var data = null;
 		#if flash
-			data = flash.external.ExternalInterface.call("haxe.remoting.ExternalConnection.doCall",__data.name,__path.join("."),params);
+			#if js-unflatten
+				data = flash.external.ExternalInterface.call("haxe.remoting.ExternalConnection.doCall",__data.name,__path.join("."),params);
+			#else
+				data = flash.external.ExternalInterface.call("haxe_remoting_ExternalConnection.doCall",__data.name,__path.join("."),params);
+			#end
 		#elseif js
 			var fobj : Dynamic = (untyped js.Browser.document)[cast __data.flash]; // FIXME(bruno): Why is this necessary?
 			if( fobj == null ) fobj = js.Browser.document.getElementById(__data.flash);