Skip to content

Commit c70b034

Browse files
committed
fix(cdk-experimental/toolbar): uregister wording
1 parent 84dcffa commit c70b034

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/cdk-experimental/radio-group/radio-group.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export class CdkRadioGroup<V> {
170170
// If the group is disabled and the toolbar is set to skip disabled items,
171171
// the radio buttons should not be part of the toolbar's navigation.
172172
if (this.disabled() && this.toolbar.skipDisabled()) {
173-
radioButtons.forEach(radio => this.toolbar!.deregister(radio));
173+
radioButtons.forEach(radio => this.toolbar!.unregister(radio));
174174
} else {
175175
radioButtons.forEach(radio => this.toolbar!.register(radio));
176176
}
@@ -182,9 +182,9 @@ export class CdkRadioGroup<V> {
182182
this._hasFocused.set(true);
183183
}
184184

185-
toolbarButtonDeregister(radio: CdkRadioButton<V>) {
185+
toolbarButtonUnregister(radio: CdkRadioButton<V>) {
186186
if (this.toolbar) {
187-
this.toolbar.deregister(radio);
187+
this.toolbar.unregister(radio);
188188
}
189189
}
190190
}
@@ -239,7 +239,7 @@ export class CdkRadioButton<V> implements OnDestroy {
239239

240240
ngOnDestroy() {
241241
if (this._cdkRadioGroup.toolbar) {
242-
this._cdkRadioGroup.toolbarButtonDeregister(this);
242+
this._cdkRadioGroup.toolbarButtonUnregister(this);
243243
}
244244
}
245245
}

src/cdk-experimental/toolbar/toolbar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class CdkToolbar<V> {
143143
}
144144
}
145145

146-
deregister(widget: CdkRadioButtonInterface<V> | CdkToolbarWidget) {
146+
unregister(widget: CdkRadioButtonInterface<V> | CdkToolbarWidget) {
147147
const widgets = this._cdkWidgets();
148148
if (widgets.delete(widget)) {
149149
this._cdkWidgets.set(new Set(widgets));
@@ -210,6 +210,6 @@ export class CdkToolbarWidget implements OnInit, OnDestroy {
210210
}
211211

212212
ngOnDestroy() {
213-
this._cdkToolbar.deregister(this);
213+
this._cdkToolbar.unregister(this);
214214
}
215215
}

0 commit comments

Comments
 (0)