forked from MapComplete/MapComplete
chore: automatic fix some linting errors, update lint config
This commit is contained in:
parent
04c8ccb0d2
commit
804280511b
26 changed files with 47 additions and 45 deletions
|
|
@ -24,7 +24,7 @@ export default abstract class BaseUIElement {
|
|||
}
|
||||
|
||||
AttachTo(divId: string) {
|
||||
let element = document.getElementById(divId)
|
||||
const element = document.getElementById(divId)
|
||||
if (element === null) {
|
||||
if (Utils.runningFromConsole) {
|
||||
this.ConstructElement()
|
||||
|
|
@ -78,7 +78,7 @@ export default abstract class BaseUIElement {
|
|||
|
||||
public RemoveClass(classes: string): BaseUIElement {
|
||||
const all = classes.split(" ").map((clsName) => clsName.trim())
|
||||
for (let clss of all) {
|
||||
for (const clss of all) {
|
||||
if (this.clss.has(clss)) {
|
||||
this.clss.delete(clss)
|
||||
this._constructedHtmlElement?.classList.remove(clss)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue