code: function () {
              Dialog.superclass.initEvents.call(this);
  
              var SIGNATURE = CustomEvent.LIST;
  
              /**
              * CustomEvent fired prior to submission
              * @event beforeSubmitEvent
              */ 
              this.beforeSubmitEvent = 
                  this.createEvent(EVENT_TYPES.BEFORE_SUBMIT);
              this.beforeSubmitEvent.signature = SIGNATURE;
              
              /**
              * CustomEvent fired after submission
              * @event submitEvent
              */
              this.submitEvent = this.createEvent(EVENT_TYPES.SUBMIT);
              this.submitEvent.signature = SIGNATURE;
          
              /**
              * CustomEvent fired for manual submission, before the generic submit event is fired
              * @event manualSubmitEvent
              */
              this.manualSubmitEvent = 
                  this.createEvent(EVENT_TYPES.MANUAL_SUBMIT);
              this.manualSubmitEvent.signature = SIGNATURE;
  
              /**
              * CustomEvent fired after asynchronous submission, before the generic submit event is fired
              *
              * @event asyncSubmitEvent
              * @param {Object} conn The connection object, returned by YAHOO.util.Connect.asyncRequest
              */
              this.asyncSubmitEvent = this.createEvent(EVENT_TYPES.ASYNC_SUBMIT);
              this.asyncSubmitEvent.signature = SIGNATURE;
  
              /**
              * CustomEvent fired after form-based submission, before the generic submit event is fired
              * @event formSubmitEvent
              */
              this.formSubmitEvent = this.createEvent(EVENT_TYPES.FORM_SUBMIT);
              this.formSubmitEvent.signature = SIGNATURE;
  
              /**
              * CustomEvent fired after cancel
              * @event cancelEvent
              */
              this.cancelEvent = this.createEvent(EVENT_TYPES.CANCEL);
              this.cancelEvent.signature = SIGNATURE;
          
          }
docs: Initializes the custom events for Dialog which are fired
  automatically at appropriate times by the Dialog class.
  @method initEvents