src/lib/demo.js
function() {
    // Calculate new column count after resize.
    columnCount = getColumnCount();
    if(columnHeights.length != columnCount) {
      // Reset array of column heights and container width.
      resetHeights(columnCount);
      adjustCells(cellsContainer.children, true);
    } else {
      manageCells();
    }
  }
function() {
    // Calculate new column count after resize.
    columnCount = getColumnCount();
    if(columnHeights.length != columnCount) {
      // Reset array of column heights and container width.
      resetHeights(columnCount);
      adjustCells(cellsContainer.children, true);
    } else {
      manageCells();
    }
  }
function ( ) { // Calculate new column count after resize. columnCount = getColumnCount ( ) ; if ( columnHeights . length != columnCount ) { // Reset array of column heights and container width. resetHeights ( columnCount ) ; adjustCells ( cellsContainer . children , true ) ; } else { manageCells ( ) ; } }
Calculate new column data if it's necessary after resize.
Calculate new column data if it s necessary after resize .