mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-07 03:15:54 +02:00
* Avoid extra load at EOF if no pages are used
This commit is contained in:
parent
e3e8ff02b2
commit
ffc2238def
@ -279,6 +279,10 @@ begin
|
||||
R.DoAfterRequest; // This will free request !
|
||||
end;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if (loAtEOF in R.LoadOptions) and (Connection.PageParam='') then
|
||||
R.Success:=rrEOF
|
||||
else
|
||||
begin
|
||||
R.FXHR.open('GET',URL,true);
|
||||
@ -286,6 +290,7 @@ begin
|
||||
Result:=True;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TRESTDataProxy.GetDataRequest(aOptions: TLoadOptions; aAfterRequest: TDataRequestEvent; aAfterLoad: TDatasetLoadEvent): TDataRequest;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user