code: function() {
           var el = this.element;
  
           // Remove from DOM
           if(YAHOO.util.Dom.inDocument(el)) {
              el.parentNode.removeChild(el);
           }
  
           // recursively purge element
           Event.purgeElement(el, true);
        }
docs: Purge all event listeners and remove the component from the dom
  @method destroy