From 5331407313448bcf5809e915280a83080f2ab0f2 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Sat, 19 Aug 2006 01:05:32 +0000 Subject: [PATCH] Match change to ConfirmAdapter. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@45 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../whirled/spot/client/SpotSceneDirector.as | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/as/com/threerings/whirled/spot/client/SpotSceneDirector.as b/src/as/com/threerings/whirled/spot/client/SpotSceneDirector.as index c95661d7..279db41d 100644 --- a/src/as/com/threerings/whirled/spot/client/SpotSceneDirector.as +++ b/src/as/com/threerings/whirled/spot/client/SpotSceneDirector.as @@ -223,18 +223,18 @@ public class SpotSceneDirector extends BasicDirector _pendingLoc = (loc.clone() as Location); var clist :ConfirmAdapter = new ConfirmAdapter( + function (reason :String) :void { + _pendingLoc = null; + if (listener != null) { + listener.requestFailed(new Error(reason)); + } + }, function () :void { _location = _pendingLoc; _pendingLoc = null; if (listener != null) { listener.requestCompleted(_location); } - }, - function (reason :String) :void { - _pendingLoc = null; - if (listener != null) { - listener.requestFailed(new Error(reason)); - } }); _sservice.changeLocation(_wctx.getClient(), sceneId, loc, clist); } @@ -263,15 +263,15 @@ public class SpotSceneDirector extends BasicDirector log.info("Joining cluster [friend=" + froid + "]."); _sservice.joinCluster(_wctx.getClient(), froid, new ConfirmAdapter( - function () :void { - if (listener != null) { - listener.requestCompleted(null); - } - }, function (reason :String) :void { if (listener != null) { listener.requestFailed(new Error(reason)); } + }, + function () :void { + if (listener != null) { + listener.requestCompleted(null); + } })); }