mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-07 08:47:49 +02:00
* Correct DefaultHandler/DeefaultHandlerStr
This commit is contained in:
parent
a89cc4b9ab
commit
8a3692b9fd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user