JavaScript - Passing a reference to this current anonymous function

Posted by Michael on Stack Overflow See other posts from Stack Overflow or by Michael
Published on 2010-05-12T05:00:54Z Indexed on 2010/05/12 5:14 UTC
Read the original article Hit count: 222

Filed under:
|
window.addEventListener('unload', function(e)
{
    MyClass.shutdown();
    window.removeEventListener('unload', /* how to refer to this function? */);
}, false);

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about function