WebSockets: minor update in JS code style

Use anonymous blocks { } instead of anonymous functions as the outermost scope
in some files.

Also fix incorrect wording for a comment
This commit is contained in:
Luciano Iam 2021-06-14 10:27:26 +02:00
parent f1d7e1759a
commit cef81b8c23
5 changed files with 10 additions and 10 deletions

View file

@ -167,7 +167,7 @@ export class Dialog extends BaseDialog {
show () {
// opening a TK.Dialog with auto_close=true from a TK.Button callback
// fails otherwise ev.stopPropagation() is called in the button event
// fails unless ev.stopPropagation() is called in the button event
// handler or setTimeout() is used here
setTimeout(() => {
this.tk.set('display_state', 'show');