Require the 'processed' function. If you are calling a ResultListener service,
you should always listen for the result! Otherwise, you are likely doing something wrong. Listen for the result, or change the service to not report a result if it's irrelevant. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5374 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -30,8 +30,7 @@ package com.threerings.presents.client {
|
||||
public class ResultWrapper extends InvocationAdapter
|
||||
implements InvocationService_ResultListener
|
||||
{
|
||||
public function ResultWrapper (
|
||||
failed :Function, processed :Function = null)
|
||||
public function ResultWrapper (failed :Function, processed :Function)
|
||||
{
|
||||
super(failed);
|
||||
_processed = processed;
|
||||
@@ -40,9 +39,7 @@ public class ResultWrapper extends InvocationAdapter
|
||||
// documentation inherited from interface ResultListener
|
||||
public function requestProcessed (result :Object) :void
|
||||
{
|
||||
if (_processed != null) {
|
||||
_processed(result);
|
||||
}
|
||||
_processed(result);
|
||||
}
|
||||
|
||||
protected var _processed :Function;
|
||||
|
||||
Reference in New Issue
Block a user