Skip to content

Commit 35795d3

Browse files
committed
Improve event listener example (resolves #28)
1 parent 369e69f commit 35795d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ Goroutines are fully supported by GopherJS. The only restriction is that you nee
9595
```go
9696
js.Global.Get("myButton").Call("addEventListener", "click", func() {
9797
go func() {
98+
[...]
9899
someBlockingFunction()
100+
[...]
99101
}()
100102
})
101103
```

0 commit comments

Comments
 (0)