Skip to content

Commit fb3d29f

Browse files
committed
Renamed a method and replaced some vars with lets.
1 parent 84f56a6 commit fb3d29f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/CellMeasurer/CellMeasurer.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)