Commit e61a230
committed
fix: use Closure::wrap instead of Closure::once for wasm-bindgen compatibility
Closure::once was added in wasm-bindgen 0.2.93, but many projects still use
older versions. Changed to use Closure::wrap with FnMut which works across
all wasm-bindgen versions.
Fixes compilation error in River and other projects using older wasm-bindgen.1 parent c12a6a9 commit e61a230
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
0 commit comments