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:
@@ -29,7 +29,7 @@ import flash.events.IEventDispatcher;
|
||||
public class CommandEvent extends Event
|
||||
{
|
||||
/** The event type for all controller events. */
|
||||
public static const TYPE :String = "commandEvt";
|
||||
public static const COMMAND :String = "commandEvt";
|
||||
|
||||
/**
|
||||
* Use this method to dispatch CommandEvents.
|
||||
@@ -98,7 +98,7 @@ public class CommandEvent extends Event
|
||||
*/
|
||||
public function CommandEvent (command :String, arg :Object)
|
||||
{
|
||||
super(TYPE, true, true);
|
||||
super(COMMAND, true, true);
|
||||
if (_blockConstructor) {
|
||||
throw new IllegalOperationError();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user