code: function setupFields() {
  			this.foreach( function( field ) {
  				// Exclude layout container elements
  				if ( /^(?!vbox|hbox)/.test( field.type ) ) {
  					if ( !field.setup ) {
  						// Read the dialog fields values from the specified
  						// element attributes.
  						field.setup = function( element ) {
  							field.setValue( element.getAttribute( field.id ) || '', 1 );
  						};
  					}
  					if ( !field.commit ) {
  						// Set element attributes assigned by the dialog
  						// fields.
  						field.commit = function( element ) {
  							var fieldValue = this.getValue();
  							// ignore default element attribute values
  							if ( 'dir' == field.id && element.getComputedStyle( 'direction' ) == fieldValue )
  								return;
  
  							if ( fieldValue )
  								element.setAttribute( field.id, fieldValue );
  							else
  								element.removeAttribute( field.id );
  						};
  					}
  				}
  			} );
  		}
docs: Init all fields' setup/commit function. @memberof divDialog