Skip to content

Commit 0fdea7b

Browse files
committed
optimize
1 parent 573668b commit 0fdea7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/list/list-option.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class MdListOption implements AfterContentInit, OnDestroy, Focusable {
125125
}
126126

127127
toggle(): void {
128-
if (this._disabled == false && this.selectionList.disabled == false) {
128+
if (!this._disabled && !this.selectionList.disabled) {
129129
this.selected = !this.selected;
130130
this.selectionList.selectedOptions.toggle(this);
131131
this._changeDetector.markForCheck();

0 commit comments

Comments
 (0)