code: function () {
  
              var parent;
  
              if (this.element) {
                  Event.purgeElement(this.element, true);
                  parent = this.element.parentNode;
              }
  
              if (parent) {
                  parent.removeChild(this.element);
              }
          
              this.element = null;
              this.header = null;
              this.body = null;
              this.footer = null;
  
              Module.textResizeEvent.unsubscribe(this.onDomResize, this);
  
              this.cfg.destroy();
              this.cfg = null;
  
              this.destroyEvent.fire();
          }
docs: Removes the Module element from the DOM and sets all child elements
  to null.
  @method destroy