|
@@ -48,7 +48,7 @@ class LocalConnection extends AsyncConnection {
|
|
|
if( f == null )
|
|
|
throw "No method specified";
|
|
|
s.serialize(params);
|
|
|
- if( !__data[untyped "send"](__data.target,"remotingCall",p.join("."),f,s.toString()) )
|
|
|
+ if( !__data[untyped "send"](__data[untyped "target"],"remotingCall",p.join("."),f,s.toString()) )
|
|
|
throw "Remoting call failure";
|
|
|
__funs.add(onData);
|
|
|
} catch( e : Dynamic ) {
|
|
@@ -58,7 +58,7 @@ class LocalConnection extends AsyncConnection {
|
|
|
|
|
|
static function remotingCall( c : LocalConnection, path, f, args ) {
|
|
|
var r = untyped Connection.doCall(path,f,args);
|
|
|
- if( !c.__data[untyped "send"](c.__data.target,"remotingResult",r) )
|
|
|
+ if( !c.__data[untyped "send"](c.__data[untyped "target"],"remotingResult",r) )
|
|
|
c.__error.ref("Remoting response failure");
|
|
|
}
|
|
|
|
|
@@ -85,7 +85,7 @@ class LocalConnection extends AsyncConnection {
|
|
|
var recv = name+"_recv";
|
|
|
Reflect.setField(l,"remotingCall",function(path,f,args) { remotingCall(c,path,f,args); });
|
|
|
Reflect.setField(l,"remotingResult",function(r) { remotingResult(c,r); });
|
|
|
- l.onStatus = function(s:Dynamic) { if( s.level != "status" ) c.__error.ref("Failed to send data on LocalConnection"); }
|
|
|
+ l.onStatus = function(s:Dynamic) { if( s[untyped "level"] != "status" ) c.__error.ref("Failed to send data on LocalConnection"); }
|
|
|
if( l.connect(name) )
|
|
|
untyped l.target = recv;
|
|
|
else {
|