Automatically unwrap any Wrapped arguments to any Receiver.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4548 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -3,6 +3,7 @@ package com.threerings.presents.client {
|
||||
import flash.utils.getTimer; // function import
|
||||
|
||||
import com.threerings.util.Hashtable;
|
||||
import com.threerings.util.Wrapped;
|
||||
|
||||
import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
|
||||
|
||||
@@ -237,6 +238,14 @@ public class InvocationDirector
|
||||
return;
|
||||
}
|
||||
|
||||
if (args != null) {
|
||||
for (var ii :int = 0; ii < args.length; ii++) {
|
||||
if (args[ii] is Wrapped) {
|
||||
args[ii] = (args[ii] as Wrapped).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// log.info("Dispatching invocation notification " +
|
||||
// "[receiver=" + decoder.receiver + ", methodId=" + methodId +
|
||||
// ", args=" + StringUtil.toString(args) + "].");
|
||||
|
||||
Reference in New Issue
Block a user