title: JavaScript - Passing a reference to this current anonymous function
body: <pre><code>window.addEventListener('unload', function(e)
  {
      MyClass.shutdown();
      window.removeEventListener('unload', /* how to refer to this function? */);
  }, false);
  </code></pre>