hallvard
09/23/2019, 12:03 PMreturnValue: "kotlin.Unit"
(where my Firefox/Ubuntu has returnValue: ""
). Is this something known? Is there a workaround?spand
09/23/2019, 12:07 PMnothing
even in javascript.spand
09/23/2019, 12:07 PMnull
?hallvard
09/23/2019, 12:08 PMreturnValue
in Safari and other browsers. My firefox reports it to be the empty string, and that's ok by me.hallvard
09/23/2019, 12:08 PMhallvard
09/23/2019, 12:19 PMhallvard
09/23/2019, 12:21 PMhallvard
09/23/2019, 12:22 PMreturnValue
thing vecome the string kotlin.Unit
on Safari? Is this a bug in transpiliation of the kotlin std lib to JS?spand
09/23/2019, 12:29 PMnull
in your handlerspand
09/23/2019, 12:30 PMZachary Grafton
09/23/2019, 1:29 PMnull
doesn't fix it, you might be able to return undefined
instead.spand
09/23/2019, 5:27 PM((BeforeUnloadEvent) -> String?)?
. I wonder how he even got Unit
in therehallvard
09/24/2019, 6:16 AM((Event) -> Unit)?
. According to all documentation I have read, it should be sufficient that the listener method/function not return a string, and indeed, this seems to be the case for all browsers but one. But then I find this discrepancy inside the event object... So I was thinking maybe there was a special handling of the event object initialization going on in Safari ...spand
09/24/2019, 7:20 AMhallvard
09/24/2019, 12:38 PM