Bad Nathan! Avoid "if true then true" coding. I need a snappier name for
this ugly pattern. FYI, CommandButton also has buttonMode follow enabled-ness. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@493 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -53,12 +53,7 @@ public class CommandLinkButton extends LinkButton
|
||||
override public function set enabled (enable :Boolean) :void
|
||||
{
|
||||
super.enabled = enable;
|
||||
|
||||
if (enable) {
|
||||
buttonMode = true;
|
||||
} else {
|
||||
buttonMode = false;
|
||||
}
|
||||
buttonMode = enable;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user