Avoid calling the type constant for an event with only one type TYPE.

Follow actionscript convention and create a reasonable name for it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4919 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2008-01-08 01:35:01 +00:00
parent a5b132757b
commit 460d826d91
4 changed files with 14 additions and 7 deletions
+2 -2
View File
@@ -32,12 +32,12 @@ public class Controller
{
if (_controlledPanel != null) {
_controlledPanel.removeEventListener(
CommandEvent.TYPE, handleCommandEvent);
CommandEvent.COMMAND, handleCommandEvent);
}
_controlledPanel = panel;
if (_controlledPanel != null) {
_controlledPanel.addEventListener(
CommandEvent.TYPE, handleCommandEvent);
CommandEvent.COMMAND, handleCommandEvent);
}
}