alien4u
06/29/2018, 1:36 PMsaveRecord()
is working but the record save operation continue even if the user does not click anything...samyt
06/29/2018, 1:42 PMalien4u
06/29/2018, 1:45 PMsamyt
06/29/2018, 1:46 PMjkabot
06/29/2018, 2:27 PMwindow.confirm
freezes the main thread until you press something. this behavior is provided natively by the browser.
dialog.confirm
returns a promise. it is essentially some buttons with callbacks. the main thread does not freeze, and unless you are in an async
function you can't wait for the result. its behavior is provided through some html and a javascript library.jkabot
06/29/2018, 2:32 PM