title: Mootools event leak
body: <p>The example to demonstrate the issue can be found here:</p>
  
  <p><a href="http://jsfiddle.net/tptshepo/47J3y/" rel="nofollow">link text</a></p>
  
  <p>The test shows a basic Mootools class that contains an element variable with a click event attached. There’s also a “cleanup” function to remove the event and nullify the element variable.</p>
  
  <p>My problem is that when I loop a thousand times to create the “LeakClass” instance and clean it up, it causes a major memory leak like there’s no tomorrow. I tested this on IE8 and Chrome.</p>
  
  <p>On the other hand what I’ve noticed is that if I comment out the line that adds the “click” event, the code doesn’t leak.</p>
  
  <p>Can somebody please help me structure the class/event in a manner that it doesn’t leak.</p>
  
  <p>Thanks in advance.</p>