All the latest and ... well, the latest anyway.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3950 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -7,22 +7,18 @@ public class InvocationAdapter
|
||||
* Construct an InvocationAdapter that will call the specified
|
||||
* function on error.
|
||||
*/
|
||||
public function InvocationAdapter (failedFunc :Function, args :Array = null)
|
||||
public function InvocationAdapter (failedFunc :Function)
|
||||
{
|
||||
_failedFunc = failedFunc;
|
||||
_args = args;
|
||||
}
|
||||
|
||||
// documentation inherited from interface InvocationListener
|
||||
public function requestFailed (cause :String) :void
|
||||
{
|
||||
_failedFunc(cause, _args);
|
||||
_failedFunc(cause);
|
||||
}
|
||||
|
||||
/** The Function to call when we've recevied our failure response. */
|
||||
protected var _failedFunc :Function;
|
||||
|
||||
/** Any other extra information to pass along to the function. */
|
||||
protected var _args :Array;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user