diff --git a/haxe/ui/components/Range.hx b/haxe/ui/components/Range.hx index 6c71ebca4..b6659e8c9 100644 --- a/haxe/ui/components/Range.hx +++ b/haxe/ui/components/Range.hx @@ -158,7 +158,7 @@ private class RangeEnd extends DataBehaviour { @:access(haxe.ui.core.Component) private class AllowInteraction extends DefaultBehaviour { public override function get():Variant { - return (_component._internalEvents != null); + return (cast _component._internalEvents != null); } public override function set(value:Variant) { @@ -266,4 +266,4 @@ class RangeBuilder extends CompositeBuilder { var name = _component.className.split(".").pop(); trace("WARNING: trying to create an instance of '" + name + "' directly, use either 'Horizontal" + name + "' or 'Vertical" + name + "'"); } -} \ No newline at end of file +}