code: function() {
  		var config = $.extend( true, {}, this.config );
  		config.content = [];
  		var next = function( configNode, item ) {
  			var key, i;
  			
  			for( key in item.config ) {
  				if( key !== 'content' ) {
  					configNode[ key ] = item.config[ key ];
  				}
  			}
  
  			if( item.contentItems.length ) {
  				configNode.content = [];
  				
  				for( i = 0; i < item.contentItems.length; i++ ) {
  					configNode.content[ i ] = {};
  					next( configNode.content[ i ], item.contentItems[ i ] );
  				}
  			}
  		};
  
  		next( config, this.root );
  
  		return config;
  	}
docs: Creates a layout configuration out of the current state
  
  @returns {Object} GoldenLayout configuration