docs: function(patternData, iframePassback, switchText) {
      
      // if this is a styleguide view close the modal
      if (iframePassback) {
        modalViewer.hide();
      }
      
      // gather the data that will fill the modal window
      panelsViewer.gatherPanels(patternData, iframePassback, switchText);
      
    }