Commit 18f35e3
committed
Fix: Resolve parameter reassignment issue in
- Updated the `divideLocal` method to avoid reassignment of the input
parameter `a`.
- Ensured proper functionality by using the `this` keyword for color
components (r, g, b, a).
- Addressed potential confusion and bugs caused by parameter shadowing.
Thanks and shout-out to my nerd coding buddy and long-time friend tim
for pointing this out—you're a lifesaver!Color.divideLocal
1 parent 2821352 commit 18f35e3
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| |||
0 commit comments