[Pas2js] TCustomWebWidget(DefaultParentElement)

Michael Van Canneyt michael at freepascal.org
Fri Nov 27 13:24:34 CET 2020



On Fri, 27 Nov 2020, heliosroots wrote:

> the element reference is stuck in the "DOM".
> I'm using it as an alternative!
>
> destructor TMyDialog.Destroy;
> begin
>  if (Assigned(Element)) and (Assigned(DefaultParentElement)) then
>  begin
>    DefaultParentElement.removeChild(Element);
>  end;
>  inherited Destroy;
> end;

Strange, this should not be necessary at all, it should be automatic ?

Hm. I must check this...

Michael.


More information about the Pas2js mailing list