code: function() {
  
          if (this.beforeDestroyEvent.fire()) {
  
              var cal = this;
      
              // Child objects
              if (cal.navigator) {
                  cal.navigator.destroy();
              }
      
              if (cal.cfg) {
                  cal.cfg.destroy();
              }
      
              // DOM event listeners
              Event.purgeElement(cal.oDomContainer, true);
      
              // Generated markup/DOM - Not removing the container DIV since we didn't create it.
              Dom.removeClass(cal.oDomContainer, CalendarGroup.CSS_CONTAINER);
              Dom.removeClass(cal.oDomContainer, CalendarGroup.CSS_MULTI_UP);
              
              for (var i = 0, l = cal.pages.length; i < l; i++) {
                  cal.pages[i].destroy();
                  cal.pages[i] = null;
              }
      
              cal.oDomContainer.innerHTML = "";
      
              // JS-to-DOM references
              cal.oDomContainer = null;
      
              this.destroyEvent.fire();
          }
      }
docs: Destroys the CalendarGroup instance. The method will remove references
  to HTML elements, remove any event listeners added by the CalendarGroup.
  
  It will also destroy the Config and CalendarNavigator instances created by the
  CalendarGroup and the individual Calendar instances created for each page.
  
  @method destroy