Make buildRings private.

This commit is contained in:
punkfairie 2023-05-10 22:10:11 -07:00
parent b8745fa7e3
commit 2da65e94f7

View file

@ -3,7 +3,7 @@ export class UI {
/* -------------------------------------------------------------------------- buildRings ---- */ /* -------------------------------------------------------------------------- buildRings ---- */
static buildRings(body) { static #buildRings(body) {
const rings = $('<span>') const rings = $('<span>')
const seperator = $('<span>').text(' ) ') const seperator = $('<span>').text(' ) ')
rings.appendChild(seperator) rings.appendChild(seperator)
@ -65,7 +65,7 @@ export class UI {
type.appendChild($('<i>').addClass(`flaticon-${body.typeIcon()}`)) type.appendChild($('<i>').addClass(`flaticon-${body.typeIcon()}`))
// rings // rings
if (body.Rings !== undefined) { if (body.Rings !== undefined) {
type.appendChild(buildRings(body)) type.appendChild(UI.#buildRings(body))
} }
// type // type
const typeName = body.PlanetClass || body.starType || '' const typeName = body.PlanetClass || body.starType || ''