code: function() {
        
        var i, length;
        
        inputEx.Form.superclass.initEvents.call(this);
        
        
        // Custom event to normalize form submits
        this.submitEvent = new util.CustomEvent("submit");
        
        
        // Two ways to trigger the form submitEvent firing
        //
        //
        // 1. catch a 'submit' event on form (say a user pressed <Enter> in a field)
        //
           Event.addListener(this.form, 'submit', function(e) {
           
              // always stop event
              Event.stopEvent(e);
           
              // replace with custom event
              this.submitEvent.fire();
           
           },this,true);
        
        
        //
        // 2. click on a 'submit' or 'submit-link' button
        //
           for(i=0, length=this.buttons.length; i<length; i++) {
           
              this.buttons[i].submitEvent.subscribe(function() { this.submitEvent.fire(); }, this, true);
           
           }
        
        
        // When form submitEvent is fired, call onSubmit
        this.submitEvent.subscribe(this.options.onSubmit || this.onSubmit, this, true);
     }
docs: Init the events