@@ -661,11 +661,6 @@ export const GridMixin = (superClass) =>
661661 }
662662
663663 row . index = index ;
664-
665- this . _updateRowOrderParts ( row , index ) ;
666-
667- this . __a11yUpdateRowRowindex ( row , index ) ;
668-
669664 this . __ensureRowItem ( row ) ;
670665 this . __ensureRowHierarchy ( row ) ;
671666 this . __updateRow ( row ) ;
@@ -678,17 +673,17 @@ export const GridMixin = (superClass) =>
678673 }
679674
680675 /** @private */
681- _updateRowOrderParts ( row , index = row . index ) {
676+ __updateRowOrderParts ( row ) {
682677 updateBooleanRowStates ( row , {
683- first : index === 0 ,
684- last : index === this . _flatSize - 1 ,
685- odd : index % 2 !== 0 ,
686- even : index % 2 === 0 ,
678+ first : row . index === 0 ,
679+ last : row . index === this . _flatSize - 1 ,
680+ odd : row . index % 2 !== 0 ,
681+ even : row . index % 2 === 0 ,
687682 } ) ;
688683 }
689684
690685 /** @private */
691- _updateRowStateParts ( row , { item, expanded, selected, detailsOpened } ) {
686+ __updateRowStateParts ( row , { item, expanded, selected, detailsOpened } ) {
692687 updateBooleanRowStates ( row , {
693688 expanded,
694689 collapsed : this . __isRowExpandable ( row ) ,
@@ -710,11 +705,7 @@ export const GridMixin = (superClass) =>
710705 _renderColumnTree ( columnTree ) {
711706 iterateChildren ( this . $ . items , ( row ) => {
712707 this . __initRow ( row , columnTree [ columnTree . length - 1 ] , 'body' , false , true ) ;
713-
714- const model = this . __getRowModel ( row ) ;
715- this . _updateRowOrderParts ( row ) ;
716- this . _updateRowStateParts ( row , model ) ;
717- this . _filterDragAndDrop ( row , model ) ;
708+ this . __updateRow ( row ) ;
718709 } ) ;
719710
720711 while ( this . $ . header . children . length < columnTree . length ) {
@@ -791,6 +782,9 @@ export const GridMixin = (superClass) =>
791782 * @private
792783 */
793784 __updateRow ( row ) {
785+ this . __a11yUpdateRowRowindex ( row ) ;
786+ this . __updateRowOrderParts ( row ) ;
787+
794788 const item = this . __getRowItem ( row ) ;
795789 if ( item ) {
796790 this . __updateRowLoading ( row , false ) ;
@@ -807,7 +801,7 @@ export const GridMixin = (superClass) =>
807801 this . __a11yUpdateRowLevel ( row , model . level ) ;
808802 this . __a11yUpdateRowSelected ( row , model . selected ) ;
809803
810- this . _updateRowStateParts ( row , model ) ;
804+ this . __updateRowStateParts ( row , model ) ;
811805
812806 this . _generateCellClassNames ( row , model ) ;
813807 this . _generateCellPartNames ( row , model ) ;
0 commit comments