title: How to delete an object in Javascript crossbrowser
body: <pre><code>var obj = {
      destroy: function(){this = null;}
  };
  
  obj.destroy();
  </code></pre>
  
  <p>This works in Chrome, however firefox is throwing an error referencing this for some reason. Is there a better way to kill this object within a method?</p>
  
  <p>Error:</p>
  
  <pre><code>invalid assignment left-hand side
  [Break On This Error] destroy: function(){this = null;} 
  </code></pre>