How can I remove a TimerInterval set by the famo.us Timer Class (I do not completely understand how famo.us wraps the natvie JS-setInterval method). In native JS I can do:
var id = setInterval(fn, delay);
clearInterval(id);
I do not want to use the above solution, since it is not recommended by famo.us. Ho can I achieve the above with the famo.us Timer Class?
Timer.setInterval( function(){
console.log('exec function');
//this.doSomething() is a function defined on the classes prototype
this.doSomething();
}.bind(this), 3000);
//how can I referenc the above function?!
Timer.clear(/*function*/);
I need the setInterval Function to be bound to 'this', since I use the 'this'-context in the interval execution
Any help is much appreciated.