Commit 0cbb857
authored
Update example code in
It was my mistake to convert the example code to the new style without checking it in a real app, turns out there were a few errors in the converted version.
Calling `alert` on `JSObject.global` still requires force unwrapping. Also, dynamic properties can't be updated on `JSValue` constants, so need to convert `divElement` to a `var` binding.README.md (#100)1 parent 766d2e1 commit 0cbb857
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments