Menu
I recently became aware of the Delegate class in ActionScript, which allows one to change the scope in which a function is executed. An example would be assigning an event handler from within a class method, and needing the event handler to be aware of class properties.
I was wondering if anyone knows of something equivalent in JavaScript? I had similar trouble with a JavaScript problem a while back, and if something like ActionScript’s Delegate class exists in JavaScript I’d love to know about it!