1
0
forked from mirrors/0ad
Files
0ad/source
phosit 07ed959422 Remove IIFE in ReportDraw
Since variables declared with `var` don't respect all scopes, when used
in a loop it doesn't create a new variable each iteration. The
initializer value is always assigned to the same variable. That makes
problems when the variable is used in a callback. To work around that
the variable is copied in to a IIFE.
When not using `var` the iife isn't required.

Ref: #7812
2025-05-30 14:16:18 +02:00
..
2025-05-26 13:12:47 -05:00
2025-05-27 20:36:48 +02:00
2025-05-30 14:16:18 +02:00