I am having trouble calling methods in a setInterval... Here is a snippet of my code...
var example = function(){
    this.animate = function(){
        console.log("Animate.");
    }
    this.updateTimer = function(){ // This is being called...
        this.timer = setInterval(function(){
            this.animate(); // A "Undefined Is Not A Function" error is being thrown here.
        }, 1);
    }
}
 
     
    