patternlab/styleguide/public/styleguide/js/patternlab-viewer.js
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);
    
  }
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);
    
  }
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 ) ; }
refresh the modal if a new pattern is loaded and the modal is active
@param  {Object}       the patternData sent back from the query
@param  {Boolean}      if the refresh is of a view-all view and the content should be sent back
@param  {Boolean}      if the text in the dropdown should be switched
refresh the modal if a new pattern is loaded and the modal is active