@@ -345,7 +345,7 @@ export const GridMixin = (superClass) =>
345
345
row . setAttribute ( 'role' , 'row' ) ;
346
346
row . setAttribute ( 'tabindex' , '-1' ) ;
347
347
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 ) ;
349
349
}
350
350
rows . push ( row ) ;
351
351
}
@@ -457,9 +457,9 @@ export const GridMixin = (superClass) =>
457
457
* @param {?string } section
458
458
* @param {boolean } isColumnRow
459
459
* @param {boolean } noNotify
460
- * @protected
460
+ * @private
461
461
*/
462
- _updateRow ( row , columns , section = 'body' , isColumnRow = false , noNotify = false ) {
462
+ __initRow ( row , columns , section = 'body' , isColumnRow = false , noNotify = false ) {
463
463
const contentsFragment = document . createDocumentFragment ( ) ;
464
464
465
465
iterateRowCells ( row , ( cell ) => {
@@ -683,7 +683,7 @@ export const GridMixin = (superClass) =>
683
683
*/
684
684
_renderColumnTree ( columnTree ) {
685
685
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 ) ;
687
687
688
688
const model = this . __getRowModel ( row ) ;
689
689
this . _updateRowOrderParts ( row ) ;
@@ -710,23 +710,23 @@ export const GridMixin = (superClass) =>
710
710
}
711
711
712
712
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 ) ;
714
714
715
715
const cells = getBodyRowCells ( headerRow ) ;
716
716
updateCellsPart ( cells , 'first-header-row-cell' , index === 0 ) ;
717
717
updateCellsPart ( cells , 'last-header-row-cell' , index === rows . length - 1 ) ;
718
718
} ) ;
719
719
720
720
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 ) ;
722
722
723
723
const cells = getBodyRowCells ( footerRow ) ;
724
724
updateCellsPart ( cells , 'first-footer-row-cell' , index === 0 ) ;
725
725
updateCellsPart ( cells , 'last-footer-row-cell' , index === rows . length - 1 ) ;
726
726
} ) ;
727
727
728
728
// Sizer rows
729
- this . _updateRow ( this . $ . sizer , columnTree [ columnTree . length - 1 ] ) ;
729
+ this . __initRow ( this . $ . sizer , columnTree [ columnTree . length - 1 ] ) ;
730
730
731
731
this . _resizeHandler ( ) ;
732
732
this . _frozenCellsChanged ( ) ;
0 commit comments