- 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
{
_panel = new EZGamePanel(ctx, this);
return _panel;
return new EZGamePanel(ctx, this);
}
override protected function didInit () :void
{
super.didInit();
// retain a casted reference to our panel
_panel = (_view as EZGamePanel);
}
protected var _ezObj :EZGameObject;