Browse Source

fixed targets.

Nicolas Cannasse 19 years ago
parent
commit
d2c955ea82
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/haxe/remoting/LocalConnection.hx

+ 2 - 2
std/haxe/remoting/LocalConnection.hx

@@ -51,7 +51,7 @@ class LocalConnection extends AsyncConnection {
 			#if flash9
 			#if flash9
 			__data.send(__data.client.target,"remotingCall",p.join("."),f,s.toString());
 			__data.send(__data.client.target,"remotingCall",p.join("."),f,s.toString());
 			#else true
 			#else true
-			if( !__data[untyped "send"](__data[untyped "target"],"remotingCall",p.join("."),f,s.toString()) )
+			if( !__data[untyped "send"](__data.target,"remotingCall",p.join("."),f,s.toString()) )
 				throw "Remoting call failure";
 				throw "Remoting call failure";
 			#end
 			#end
 			__funs.add(onData);
 			__funs.add(onData);
@@ -74,7 +74,7 @@ class LocalConnection extends AsyncConnection {
 		#if flash9
 		#if flash9
 		c.__data.send(c.__data.client.target,"remotingResult",r);
 		c.__data.send(c.__data.client.target,"remotingResult",r);
 		#else true
 		#else true
-		if( !c.__data[untyped "send"](c.__data[untyped "target"],"remotingResult",r) )
+		if( !c.__data[untyped "send"](c.__data.target,"remotingResult",r) )
 			c.__error.ref("Remoting response failure");
 			c.__error.ref("Remoting response failure");
 		#end
 		#end
 	}
 	}