From d657cf9f3bcb3bfeadf32b0a0d50b427ecd084ea Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Fri, 8 Aug 2008 23:30:43 +0000 Subject: [PATCH] Convenience. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@619 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/flex/FlexUtil.as | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/as/com/threerings/flex/FlexUtil.as b/src/as/com/threerings/flex/FlexUtil.as index 36f55d2b..55c4aa57 100644 --- a/src/as/com/threerings/flex/FlexUtil.as +++ b/src/as/com/threerings/flex/FlexUtil.as @@ -59,11 +59,13 @@ public class FlexUtil * In flex the 'visible' property controls visibility separate from whether * the component takes up space in the layout, which is controlled by 'includeInLayout'. * We usually want to set them together, so this does that for us. + * @return the new visible setting. */ - public static function setVisible (component :UIComponent, visible :Boolean) :void + public static function setVisible (component :UIComponent, visible :Boolean) :Boolean { component.visible = visible; component.includeInLayout = visible; + return visible; } } }