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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user