Skip to content

Commit ef3ba89

Browse files
committed
Haxe4 compat
1 parent 68bb9bf commit ef3ba89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

haxe/ui/backend/ComponentBase.hx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ class ComponentBase extends FlxSpriteGroup implements IComponentBase {
2525
var tf:TextDisplay; // text
2626
var input:TextInput;
2727

28-
var asComponent:Component = cast this;
28+
var asComponent:Component;
2929

3030
public function new() {
3131
super();
3232

33+
asComponent = cast this;
34+
3335
scrollFactor.set(0, 0); // ui doesn't scroll by default
3436

3537
surface = new FlxSprite();

0 commit comments

Comments
 (0)