Javascript setInterval and `this` solution

this.intervalID = setInterval(this.retrieve_rate.bind(this), this.INTERVAL);

Leave a Comment