Skip to content

Commit 91ba2c1

Browse files
committed
address comments
1 parent 38afb9e commit 91ba2c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cdk-experimental/scrolling/virtual-scroll-viewport.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ export class CdkVirtualScrollViewport implements OnInit, OnDestroy {
150150
this._ngZone.runOutsideAngular(() => {
151151
this._forOf = forOf;
152152
this._forOf.dataStream.pipe(takeUntil(this._detachedSubject)).subscribe(data => {
153-
const len = data.length;
154-
if (len !== this._dataLength) {
155-
this._dataLength = len;
153+
const newLength = data.length;
154+
if (newLength !== this._dataLength) {
155+
this._dataLength = newLength;
156156
this._scrollStrategy.onDataLengthChanged();
157157
}
158158
});

0 commit comments

Comments
 (0)