class some {
constructor() {
setTimeout(this.blabla, 2000)
}
updateData() {
//...some
}
blabla() {
this.updateData();
}
}
class some {
constructor() {
this.blabla()
}
updateData() {
//...some
}
blabla() {
this.updateData();
}
}
setTimeout(this.blabla.bind(this), 2000)
setTimeout(() => this.blabla(), 2000)