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
This commit is contained in:
Jamie Doornbos
2009-10-26 20:54:16 +00:00
parent ad67558798
commit faa3315d7d
+4 -4
View File
@@ -132,19 +132,19 @@ public class FlexUtil
/** /**
* Creates a new HBox container and adds the given children to it. * 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); 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. * 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); children.unshift(VBox);
return createContainer.apply(null, children); return createContainer.apply(null, children) as VBox;
} }
/** /**