From c8d8fe1c3302f6f736db23094b72679a7c259273 Mon Sep 17 00:00:00 2001 From: Crawlerop Date: Mon, 26 Oct 2020 19:24:05 +0700 Subject: [PATCH] fire onDone event when no payloads --- lpadsjs/mapads_marker.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lpadsjs/mapads_marker.html b/lpadsjs/mapads_marker.html index 71dcb64..9d2944b 100644 --- a/lpadsjs/mapads_marker.html +++ b/lpadsjs/mapads_marker.html @@ -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 }