fixup: renaming

This commit is contained in:
Yohan Boniface 2024-10-30 09:43:31 +01:00
parent 7f65b1de57
commit 488b5882e7

View file

@ -17,19 +17,19 @@ export class SaveManager {
add(obj) { add(obj) {
this._queue.add(obj) this._queue.add(obj)
this.checkStatus() this.updateDOM()
} }
delete(obj) { delete(obj) {
this._queue.delete(obj) this._queue.delete(obj)
this.checkStatus() this.updateDOM()
} }
has(obj) { has(obj) {
return this._queue.has(obj) return this._queue.has(obj)
} }
checkStatus() { updateDOM() {
document.body.classList.toggle('umap-is-dirty', this._queue.size) document.body.classList.toggle('umap-is-dirty', this._queue.size)
} }
} }