code: 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();
      }
    }
docs: Calculate new column data if it's necessary after resize.