I have a listener like this one :
this.frame.on('touchend', self.findClosestSlide);
I need to have it like this, instead of inside an anonymous function in order to be able to unbind it later, using the function name.
My problem is that, once I am in the findClosestSlide
function, my this
object logically becomes this.frame
.
How can I access the original this
, or how can I have control on the context I'm sending to my callback function? (without using an anonymous function)