code: function() {
          this.addEvents(
              /**
               * @event change
               * Fires when the value of a field is changed via the {@link #setValue} method.
               * @param {Ext.form.field.Field} this
               * @param {Object} newValue The new value
               * @param {Object} oldValue The original value
               */
              'change',
              /**
               * @event validitychange
               * Fires when a change in the field's validity is detected.
               * @param {Ext.form.field.Field} this
               * @param {Boolean} isValid Whether or not the field is now valid
               */
              'validitychange',
              /**
               * @event dirtychange
               * Fires when a change in the field's {@link #isDirty} state is detected.
               * @param {Ext.form.field.Field} this
               * @param {Boolean} isDirty Whether or not the field is now dirty
               */
              'dirtychange'
          );
  
          this.initValue();
          
          //<debug>
          var badNames = [
              'tagName',
              'nodeName',
              'children',
              'childNodes'
          ], name = this.name;
              
          if (name && Ext.Array.indexOf(badNames, name) > -1) {
              Ext.log.warn(
                  ['It is recommended to not use "', name, '" as a field name, because it ',
                  'can cause naming collisions during form submission.'].join('')
              );
          }
          //</debug>
      }
docs: Initializes this Field mixin on the current instance. Components using this mixin should call this method during
  their own initialization process.