* Correct DefaultHandler/DeefaultHandlerStr

This commit is contained in:
michael 2019-08-04 21:30:02 +00:00
parent a89cc4b9ab
commit 8a3692b9fd

View File

@ -975,7 +975,7 @@ begin
Id:=Msg['MsgStr'];
if not isString(Id) then exit;
aClass:=ClassType;
while aClass<>nil do
while (aClass<>Nil) do
begin
asm
var Handlers = aClass.$msgstr;
@ -991,12 +991,12 @@ end;
procedure TObject.DefaultHandler(var aMessage);
begin
if jsvalue(aMessage) then ;
if jsvalue(TMethod(aMessage)) then ;
end;
procedure TObject.DefaultHandlerStr(var aMessage);
begin
if jsvalue(aMessage) then ;
if jsvalue(TMethod(aMessage)) then ;
end;
function TObject.GetInterface(const iid: TGuid; out obj): boolean;