File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export default class CellMeasurer extends Component {
7373
7474 let maxWidth = 0
7575
76- for ( var rowIndex = 0 ; rowIndex < rowCount ; rowIndex ++ ) {
76+ for ( let rowIndex = 0 ; rowIndex < rowCount ; rowIndex ++ ) {
7777 let { width } = this . _measureCell ( {
7878 columnIndex : index ,
7979 rowIndex
@@ -92,11 +92,11 @@ export default class CellMeasurer extends Component {
9292 return this . _cachedRowHeights [ index ]
9393 }
9494
95- const { rowCount } = this . props
95+ const { columnCount } = this . props
9696
9797 let maxHeight = 0
9898
99- for ( var columnIndex = 0 ; columnIndex < rowCount ; columnIndex ++ ) {
99+ for ( let columnIndex = 0 ; columnIndex < columnCount ; columnIndex ++ ) {
100100 let { height } = this . _measureCell ( {
101101 columnIndex,
102102 rowIndex : index
@@ -124,7 +124,7 @@ export default class CellMeasurer extends Component {
124124 }
125125
126126 componentWillUnmount ( ) {
127- this . _unrenderAndDestroy ( )
127+ this . _unmountContainer ( )
128128 }
129129
130130 render ( ) {
@@ -190,7 +190,7 @@ export default class CellMeasurer extends Component {
190190 }
191191 }
192192
193- _unrenderAndDestroy ( ) {
193+ _unmountContainer ( ) {
194194 if ( this . _div ) {
195195 this . _containerNode . removeChild ( this . _div )
196196
You can’t perform that action at this time.
0 commit comments