[PATCH] Cleanup selection panels
|Reported by:||sanderd17||Owned by:||sanderd17|
|Priority:||Must Have||Milestone:||Alpha 21|
|Component:||UI & Simulation||Keywords:||patch|
Changes in this patch:
- The loop still happens over items, but the panels now have only one functions that sets the button content. This also makes the addData function obsolete, as it now happens all in the same scope, so data can be reused even without putting it in a data object
- The entire file has been updated from var to let, which means that some closure constructions could be removed.
Change History (5)
Note: See TracTickets for help on using tickets.