Skip to content

Commit 9c11dae

Browse files
committed
chore: rename to scrollSubscription
1 parent 44dfd3c commit 9c11dae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib/select/select.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class MdSelect implements AfterContentInit, OnDestroy, OnInit, ControlVal
135135
private _tabSubscription: Subscription;
136136

137137
/** Subscription to global scrolled events while the select is open. */
138-
private _scrolledSubscription: Subscription;
138+
private _scrollSubscription: Subscription;
139139

140140
/** Whether filling out the select is required in the form. */
141141
private _required: boolean = false;
@@ -366,7 +366,7 @@ export class MdSelect implements AfterContentInit, OnDestroy, OnInit, ControlVal
366366
this._calculateOverlayPosition();
367367
this._placeholderState = this._floatPlaceholderState();
368368
this._panelOpen = true;
369-
this._scrolledSubscription = this._scrollDispatcher.scrolled(0, () => {
369+
this._scrollSubscription = this._scrollDispatcher.scrolled(0, () => {
370370
this.overlayDir.overlayRef.updatePosition();
371371
});
372372
}
@@ -380,9 +380,9 @@ export class MdSelect implements AfterContentInit, OnDestroy, OnInit, ControlVal
380380
this._placeholderState = '';
381381
}
382382

383-
if (this._scrolledSubscription) {
384-
this._scrolledSubscription.unsubscribe();
385-
this._scrolledSubscription = null;
383+
if (this._scrollSubscription) {
384+
this._scrollSubscription.unsubscribe();
385+
this._scrollSubscription = null;
386386
}
387387

388388
this._focusHost();

0 commit comments

Comments
 (0)