Skip to content

Commit 28fd70d

Browse files
committed
rename to '_optionsChangeSubscription'
1 parent b63fccd commit 28fd70d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/list/selection-list.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class MdSelectionList implements AfterContentInit, OnDestroy {
6161
private _tabOutSubscription: Subscription;
6262

6363
/** Subscription to option changes from the selection-list. */
64-
private _optionSubscription: Subscription;
64+
private _optionsChangeSubscription: Subscription;
6565

6666
/** Whether or not the option is selectable. */
6767
protected _selectable: boolean = true;
@@ -100,7 +100,7 @@ export class MdSelectionList implements AfterContentInit, OnDestroy {
100100
// Go ahead and subscribe all of the initial options
101101
this._subscribeOptions(this.options);
102102
// When the list changes, re-subscribe
103-
this._optionSubscription =
103+
this._optionsChangeSubscription =
104104
this.options.changes.subscribe((options: QueryList<MdListOption>) => {
105105
this._subscribeOptions(options);
106106
});
@@ -111,8 +111,8 @@ export class MdSelectionList implements AfterContentInit, OnDestroy {
111111
this._tabOutSubscription.unsubscribe();
112112
}
113113

114-
if (this._optionSubscription) {
115-
this._optionSubscription.unsubscribe();
114+
if (this._optionsChangeSubscription) {
115+
this._optionsChangeSubscription.unsubscribe();
116116
}
117117
}
118118

0 commit comments

Comments
 (0)