@@ -345,7 +345,7 @@ export const GridMixin = (superClass) =>
345345 row . setAttribute ( 'role' , 'row' ) ;
346346 row . setAttribute ( 'tabindex' , '-1' ) ;
347347 if ( this . _columnTree ) {
348- this . _updateRow ( row , this . _columnTree [ this . _columnTree . length - 1 ] , 'body' , false , true ) ;
348+ this . __initRow ( row , this . _columnTree [ this . _columnTree . length - 1 ] , 'body' , false , true ) ;
349349 }
350350 rows . push ( row ) ;
351351 }
@@ -457,9 +457,9 @@ export const GridMixin = (superClass) =>
457457 * @param {?string } section
458458 * @param {boolean } isColumnRow
459459 * @param {boolean } noNotify
460- * @protected
460+ * @private
461461 */
462- _updateRow ( row , columns , section = 'body' , isColumnRow = false , noNotify = false ) {
462+ __initRow ( row , columns , section = 'body' , isColumnRow = false , noNotify = false ) {
463463 const contentsFragment = document . createDocumentFragment ( ) ;
464464
465465 iterateRowCells ( row , ( cell ) => {
@@ -683,7 +683,7 @@ export const GridMixin = (superClass) =>
683683 */
684684 _renderColumnTree ( columnTree ) {
685685 iterateChildren ( this . $ . items , ( row ) => {
686- this . _updateRow ( row , columnTree [ columnTree . length - 1 ] , 'body' , false , true ) ;
686+ this . __initRow ( row , columnTree [ columnTree . length - 1 ] , 'body' , false , true ) ;
687687
688688 const model = this . __getRowModel ( row ) ;
689689 this . _updateRowOrderParts ( row ) ;
@@ -710,23 +710,23 @@ export const GridMixin = (superClass) =>
710710 }
711711
712712 iterateChildren ( this . $ . header , ( headerRow , index , rows ) => {
713- this . _updateRow ( headerRow , columnTree [ index ] , 'header' , index === columnTree . length - 1 ) ;
713+ this . __initRow ( headerRow , columnTree [ index ] , 'header' , index === columnTree . length - 1 ) ;
714714
715715 const cells = getBodyRowCells ( headerRow ) ;
716716 updateCellsPart ( cells , 'first-header-row-cell' , index === 0 ) ;
717717 updateCellsPart ( cells , 'last-header-row-cell' , index === rows . length - 1 ) ;
718718 } ) ;
719719
720720 iterateChildren ( this . $ . footer , ( footerRow , index , rows ) => {
721- this . _updateRow ( footerRow , columnTree [ columnTree . length - 1 - index ] , 'footer' , index === 0 ) ;
721+ this . __initRow ( footerRow , columnTree [ columnTree . length - 1 - index ] , 'footer' , index === 0 ) ;
722722
723723 const cells = getBodyRowCells ( footerRow ) ;
724724 updateCellsPart ( cells , 'first-footer-row-cell' , index === 0 ) ;
725725 updateCellsPart ( cells , 'last-footer-row-cell' , index === rows . length - 1 ) ;
726726 } ) ;
727727
728728 // Sizer rows
729- this . _updateRow ( this . $ . sizer , columnTree [ columnTree . length - 1 ] ) ;
729+ this . __initRow ( this . $ . sizer , columnTree [ columnTree . length - 1 ] ) ;
730730
731731 this . _resizeHandler ( ) ;
732732 this . _frozenCellsChanged ( ) ;
0 commit comments