- 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:
@@ -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;
|
||||
|
||||
@@ -18,8 +18,6 @@ import mx.utils.DisplayUtil;
|
||||
|
||||
import com.threerings.util.MediaContainer;
|
||||
|
||||
import com.threerings.mx.controls.ChatDisplayBox;
|
||||
|
||||
import com.threerings.crowd.client.PlaceView;
|
||||
import com.threerings.crowd.data.PlaceObject;
|
||||
import com.threerings.crowd.util.CrowdContext;
|
||||
@@ -37,8 +35,6 @@ public class EZGamePanel extends VBox
|
||||
{
|
||||
_ctx = ctx;
|
||||
_ctrl = ctrl;
|
||||
|
||||
//addChild(new ChatDisplayBox(ctx));
|
||||
}
|
||||
|
||||
// from PlaceView
|
||||
|
||||
Reference in New Issue
Block a user