Преглед на файлове

renamed exported remoting method.

Nicolas Cannasse преди 19 години
родител
ревизия
4ff2f01c6d
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      std/haxe/remoting/Connection.hx

+ 3 - 3
std/haxe/remoting/Connection.hx

@@ -59,7 +59,7 @@ class Connection implements Dynamic<Connection> {
 		var s = new Serializer();
 		s.serialize(params);
 		var params = s.toString();
-		var s = __data.doCall(path,f,params);
+		var s = __data.remotingCall(path,f,params);
 		if( s == null )
 			throw "Failed to call Flash method "+__path.join(".");
 		return new Unserializer(s).unserialize();
@@ -110,7 +110,7 @@ class Connection implements Dynamic<Connection> {
 	#if flash
 
 	static function __init__() {
-		flash.external.ExternalInterface.addCallback("doCall",null,doCall);
+		flash.external.ExternalInterface.addCallback("remotingCall",null,doCall);
 	}
 
 	public static function jsConnect() : Connection {
@@ -131,7 +131,7 @@ class Connection implements Dynamic<Connection> {
 		var x : Dynamic = untyped window.document[objId];
 		if( x == null )
 			throw "Could not find flash object '"+objId+"'";
-		if( x.doCall == null ) throw "The flash object is not ready or does not contain haxe.Connection";
+		if( x.remotingCall == null ) throw "The flash object is not ready or does not contain haxe.Connection";
 		return new Connection(x,[]);
 	}