This all seems to work, so let's tidy it up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5605 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -55,28 +55,9 @@ public class CommandEvent extends Event
|
||||
}
|
||||
|
||||
// now trying calling it
|
||||
var err :Error = null;
|
||||
try {
|
||||
fn.apply(null, args);
|
||||
|
||||
// Commented out 2008-12-09 by Ray. I'm not sure we need this, it seems you can pass args
|
||||
// to an argless function without error.
|
||||
// } catch (ae :ArgumentError) {
|
||||
// if (arg is Boolean) {
|
||||
// // try with no args
|
||||
// try {
|
||||
// fn();
|
||||
// } catch (e2 :Error) {
|
||||
// err = e2;
|
||||
// }
|
||||
// } else {
|
||||
// err = ae;
|
||||
// }
|
||||
|
||||
} catch (e :Error) {
|
||||
err = e;
|
||||
}
|
||||
if (err != null) {
|
||||
} catch (err :Error) {
|
||||
Log.getLog(CommandEvent).warning("Unable to call callback.", err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user