mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-10 15:15:56 +02:00
* Avoid extra load at EOF if no pages are used
This commit is contained in:
parent
e3e8ff02b2
commit
ffc2238def
@ -279,12 +279,17 @@ 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);
|
||||
R.FXHR.send;
|
||||
Result:=True;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TRESTDataProxy.GetDataRequest(aOptions: TLoadOptions; aAfterRequest: TDataRequestEvent; aAfterLoad: TDatasetLoadEvent): TDataRequest;
|
||||
|
Loading…
Reference in New Issue
Block a user