I need to store an anonymous function passed as argument of my "named" function in Javascript, and then call it later.
How can I do this? I already know how to pass an anonymous function as an argument, but I don't know how to deal with it when I'm "on the other side" of the code.
Thank you
function xxx(f){ this.handler=f; }//change this to some other object, self, whatever. later you can just call it w/this.handler()