Skip to content

Commit 9f4bc1f

Browse files
authored
Add terminate method to PokeData class to handle loading state cleanup (#1009)
1 parent 527594f commit 9f4bc1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

js/data/poke.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,4 +227,9 @@ export default class PokeData extends FixData {
227227
this._progressBar.style.display = 'none'
228228
return datas
229229
}
230+
231+
terminate() {
232+
super.terminate()
233+
this._loading = false
234+
}
230235
}

0 commit comments

Comments
 (0)