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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user