From a3213cdee2da124b193312a0bf08274baf998f78 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Sun, 24 Sep 2006 23:51:33 +0000 Subject: [PATCH] Automatically unwrap any result object that is wrapped. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4377 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../data/InvocationMarshaller_ResultMarshaller.as | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/as/com/threerings/presents/data/InvocationMarshaller_ResultMarshaller.as b/src/as/com/threerings/presents/data/InvocationMarshaller_ResultMarshaller.as index 54909f107..e80bf7237 100644 --- a/src/as/com/threerings/presents/data/InvocationMarshaller_ResultMarshaller.as +++ b/src/as/com/threerings/presents/data/InvocationMarshaller_ResultMarshaller.as @@ -1,5 +1,7 @@ package com.threerings.presents.data { +import com.threerings.util.Wrapped; + import com.threerings.presents.client.InvocationService_ResultListener; public class InvocationMarshaller_ResultMarshaller @@ -12,8 +14,12 @@ public class InvocationMarshaller_ResultMarshaller { switch (methodId) { case REQUEST_PROCESSED: + var result :Object = args[0]; + if (result is Wrapped) { + result = (result as Wrapped).unwrap(); + } (listener as InvocationService_ResultListener).requestProcessed( - args[0]); + result); return; default: