Commit 2256b75
authored
Attempted fix for solitaire drag-and-drop (#2227)
DOES NOT actually fix solitaire drag-and-drop bug, but is nevertheless an improvement to correctness.
// Bug: .delete loses 'this' binding when passed directly to forEach
.forEach(this.resultRecipeCache.delete);
// Fix: Wrap in arrow function to preserve binding
.forEach((key) => this.resultRecipeCache.delete(key));1 parent 72686e5 commit 2256b75
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments