diff --git a/src/as/com/threerings/flex/ChatControl.as b/src/as/com/threerings/flex/ChatControl.as index e5efc7ad..d2aa551d 100644 --- a/src/as/com/threerings/flex/ChatControl.as +++ b/src/as/com/threerings/flex/ChatControl.as @@ -89,6 +89,20 @@ public class ChatControl extends HBox return _but; } + override public function set enabled (en :Boolean) :void + { + // don't call super (and the only time these aren't around is during construction) + if (_txt != null) { + _txt.enabled = en; + _but.enabled = en; + } + } + + override public function get enabled () :Boolean + { + return _txt.enabled; + } + /** * Request focus to this chat control. */ @@ -97,15 +111,6 @@ public class ChatControl extends HBox _txt.setFocus(); } - /** - * Enables or disables our chat input. - */ - public function setEnabled (enabled :Boolean) :void - { - _txt.enabled = enabled; - _but.enabled = enabled; - } - /** * Configures the chat director to which we should send our chat. Pass null to restore our * default chat director.