mirror of
https://github.com/crawlerop/lpads
synced 2026-08-14 06:22:32 +07:00
fire onDone event when no payloads
This commit is contained in:
parent
a736c3735d
commit
c8d8fe1c33
1 changed files with 6 additions and 2 deletions
|
|
@ -277,10 +277,14 @@
|
|||
onGeocode = false
|
||||
|
||||
function doAsync(reqid=0, onDone, preCon, t=0) {
|
||||
if (asyncPayload.length < 1) {
|
||||
if (preCon != null && preCon() == false) {
|
||||
return
|
||||
}
|
||||
if (preCon != null && preCon() == false) {
|
||||
|
||||
if (asyncPayload.length < 1) {
|
||||
if (onDone != null) {
|
||||
onDone()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue