]> git.cworth.org Git - empires-server/commit
Drop a gratuitous anonymous object for storing an array of games
authorCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 00:53:50 +0000 (17:53 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 00:53:50 +0000 (17:53 -0700)
commiteff8b40b8ee5bccc0990a49791365abb3b64b8b1
treea6c7e8f3f30c093d7b5a69a1374bfd110c55ec40
parent2fb7ba00b458f94dff3e924b245c8f02dc20525a
Drop a gratuitous anonymous object for storing an array of games

Recent commits have trimmed down this object until it has a single
property, so we can drop the object and store the value of that
property directly.

This makes a bunch of code much easier to read by replacing all
occurences of "game.game" with just "game". The old code was really
confusing because it was so unclear what the top-level game container
even was.
lmno.js
templates/admin.html