From faa3315d7d902ffd944034cbd59054c423f2c7e1 Mon Sep 17 00:00:00 2001 From: Jamie Doornbos Date: Mon, 26 Oct 2009 20:54:16 +0000 Subject: [PATCH] Return the most derived type for the box versions instead of Container. copy&paste error. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@860 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/flex/FlexUtil.as | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/as/com/threerings/flex/FlexUtil.as b/src/as/com/threerings/flex/FlexUtil.as index f56ab663..9a61dde1 100644 --- a/src/as/com/threerings/flex/FlexUtil.as +++ b/src/as/com/threerings/flex/FlexUtil.as @@ -132,19 +132,19 @@ public class FlexUtil /** * Creates a new HBox container and adds the given children to it. */ - public static function createHBox (...children) :Container + public static function createHBox (...children) :HBox { children.unshift(HBox); - return createContainer.apply(null, children); + return createContainer.apply(null, children) as HBox; } /** * Creates a new VBox container and adds the given children to it. */ - public static function createVBox (...children) :Container + public static function createVBox (...children) :VBox { children.unshift(VBox); - return createContainer.apply(null, children); + return createContainer.apply(null, children) as VBox; } /**