Skip to content

Commit 573668b

Browse files
committed
destory -> destoryed
1 parent 77e033d commit 573668b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lib/list/list-option.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class MdListOption implements AfterContentInit, OnDestroy, Focusable {
104104
@Output() deselected = new EventEmitter<MdSelectionListOptionEvent>();
105105

106106
/** Emitted when the option is destroyed. */
107-
@Output() destroy = new EventEmitter<MdSelectionListOptionEvent>();
107+
@Output() destroyed = new EventEmitter<MdSelectionListOptionEvent>();
108108

109109
constructor(private _renderer: Renderer2,
110110
private _element: ElementRef,
@@ -121,7 +121,7 @@ export class MdListOption implements AfterContentInit, OnDestroy, Focusable {
121121
}
122122

123123
ngOnDestroy(): void {
124-
this.destroy.emit({option: this});
124+
this.destroyed.emit({option: this});
125125
}
126126

127127
toggle(): void {

src/lib/list/selection-list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export class MdSelectionList extends _MdSelectionListMixinBase
111111
return RxChain.from(this.options.changes)
112112
.call(startWith, this.options)
113113
.call(switchMap, (options: MdListOption[]) => {
114-
return merge(...options.map(option => option.destroy));
114+
return merge(...options.map(option => option.destroyed));
115115
}).subscribe((e: MdSelectionListOptionEvent) => {
116116
let optionIndex: number = this.options.toArray().indexOf(e.option);
117117
if (e.option._hasFocus) {
@@ -122,7 +122,7 @@ export class MdSelectionList extends _MdSelectionListMixinBase
122122
this._keyManager.setActiveItem(optionIndex - 1);
123123
}
124124
}
125-
e.option.destroy.unsubscribe();
125+
e.option.destroyed.unsubscribe();
126126
});
127127
}
128128

0 commit comments

Comments
 (0)