Make buildRings private.
This commit is contained in:
parent
b8745fa7e3
commit
2da65e94f7
1 changed files with 18 additions and 18 deletions
|
@ -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 || ''
|
||||||
|
|
Loading…
Reference in a new issue