- Retain a reference to our panel in didInit().

- Cleanup.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@159 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2007-01-28 21:47:34 +00:00
parent 4079b25024
commit 570a8267d2
2 changed files with 8 additions and 6 deletions
@@ -65,8 +65,14 @@ public class EZGameController extends GameController
override protected function createPlaceView (ctx :CrowdContext) :PlaceView override protected function createPlaceView (ctx :CrowdContext) :PlaceView
{ {
_panel = new EZGamePanel(ctx, this); return new EZGamePanel(ctx, this);
return _panel; }
override protected function didInit () :void
{
super.didInit();
// retain a casted reference to our panel
_panel = (_view as EZGamePanel);
} }
protected var _ezObj :EZGameObject; protected var _ezObj :EZGameObject;
@@ -18,8 +18,6 @@ import mx.utils.DisplayUtil;
import com.threerings.util.MediaContainer; import com.threerings.util.MediaContainer;
import com.threerings.mx.controls.ChatDisplayBox;
import com.threerings.crowd.client.PlaceView; import com.threerings.crowd.client.PlaceView;
import com.threerings.crowd.data.PlaceObject; import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.util.CrowdContext; import com.threerings.crowd.util.CrowdContext;
@@ -37,8 +35,6 @@ public class EZGamePanel extends VBox
{ {
_ctx = ctx; _ctx = ctx;
_ctrl = ctrl; _ctrl = ctrl;
//addChild(new ChatDisplayBox(ctx));
} }
// from PlaceView // from PlaceView