chore: avoid this in static context

PiperOrigin-RevId: 554933524
This commit is contained in:
Elizabeth Mitchell 2023-08-08 13:59:44 -07:00 committed by Copybara-Service
parent 39ae5a6947
commit 0510496e60
22 changed files with 22 additions and 22 deletions

View File

@ -21,7 +21,7 @@ import {dispatchActivationClick, isActivationClick, redispatchEvent} from '../..
*/ */
export abstract class Button extends LitElement { export abstract class Button extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(Button);
} }
/** @nocollapse */ /** @nocollapse */

View File

@ -20,7 +20,7 @@ import {dispatchActivationClick, isActivationClick, redispatchEvent} from '../..
*/ */
export class Checkbox extends LitElement { export class Checkbox extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(Checkbox);
} }
/** @nocollapse */ /** @nocollapse */

View File

@ -22,7 +22,7 @@ export type ChipSetType = 'assist'|'suggestion'|'filter'|'input'|'';
*/ */
export class ChipSet extends LitElement { export class ChipSet extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(ChipSet);
} }
get chips() { get chips() {

View File

@ -18,7 +18,7 @@ import {requestUpdateOnAriaChange} from '../../internal/aria/delegate.js';
*/ */
export abstract class Chip extends LitElement { export abstract class Chip extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(Chip);
} }
/** @nocollapse */ /** @nocollapse */

View File

@ -23,7 +23,7 @@ export type FabSize = 'medium'|'small'|'large';
// tslint:disable-next-line:enforce-comments-on-exported-symbols // tslint:disable-next-line:enforce-comments-on-exported-symbols
export abstract class SharedFab extends LitElement { export abstract class SharedFab extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(SharedFab);
} }
/** @nocollapse */ /** @nocollapse */

View File

@ -21,7 +21,7 @@ type LinkTarget = '_blank'|'_parent'|'_self'|'_top';
// tslint:disable-next-line:enforce-comments-on-exported-symbols // tslint:disable-next-line:enforce-comments-on-exported-symbols
export class IconButton extends LitElement { export class IconButton extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(IconButton);
} }
/** @nocollapse */ /** @nocollapse */

View File

@ -24,7 +24,7 @@ import {ARIA_PROPERTIES, ariaPropertyToAttribute} from './aria.js';
* @example * @example
* class XButton extends LitElement { * class XButton extends LitElement {
* static { * static {
* requestUpdateOnAriaChange(this); * requestUpdateOnAriaChange(XButton);
* } * }
* *
* protected override render() { * protected override render() {

View File

@ -22,7 +22,7 @@ import {NavigationBarState} from './state.js';
*/ */
export class NavigationBar extends LitElement implements NavigationBarState { export class NavigationBar extends LitElement implements NavigationBarState {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(NavigationBar);
} }
@property({type: Number, attribute: 'active-index'}) activeIndex = 0; @property({type: Number, attribute: 'active-index'}) activeIndex = 0;

View File

@ -16,7 +16,7 @@ import {requestUpdateOnAriaChange} from '../../../internal/aria/delegate.js';
*/ */
export class NavigationDrawerModal extends LitElement { export class NavigationDrawerModal extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(NavigationDrawerModal);
} }
@property({type: Boolean}) opened = false; @property({type: Boolean}) opened = false;

View File

@ -18,7 +18,7 @@ import {requestUpdateOnAriaChange} from '../../../internal/aria/delegate.js';
*/ */
export class NavigationDrawer extends LitElement { export class NavigationDrawer extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(NavigationDrawer);
} }
@property({type: Boolean}) opened = false; @property({type: Boolean}) opened = false;

View File

@ -22,7 +22,7 @@ import {NavigationTabState} from './state.js';
*/ */
export class NavigationTab extends LitElement implements NavigationTabState { export class NavigationTab extends LitElement implements NavigationTabState {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(NavigationTab);
} }
@property({type: Boolean}) disabled = false; @property({type: Boolean}) disabled = false;

View File

@ -22,7 +22,7 @@ import {requestUpdateOnAriaChange} from '../../../internal/aria/delegate.js';
*/ */
export class SegmentedButton extends LitElement { export class SegmentedButton extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(SegmentedButton);
} }
@property({type: Boolean}) disabled = false; @property({type: Boolean}) disabled = false;

View File

@ -18,7 +18,7 @@ import {SegmentedButton} from '../../segmentedbutton/internal/segmented-button.j
*/ */
export class SegmentedButtonSet extends LitElement { export class SegmentedButtonSet extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(SegmentedButtonSet);
} }
@property({type: Boolean}) multiselect = false; @property({type: Boolean}) multiselect = false;

View File

@ -39,7 +39,7 @@ function isNavigableKey(key: string): key is NavigatableValues {
// tslint:disable-next-line:enforce-comments-on-exported-symbols // tslint:disable-next-line:enforce-comments-on-exported-symbols
export class List extends LitElement { export class List extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(List);
} }
/** @nocollapse */ /** @nocollapse */

View File

@ -34,7 +34,7 @@ export type ListItem = ListItemSelf&HTMLElement;
// tslint:disable-next-line:enforce-comments-on-exported-symbols // tslint:disable-next-line:enforce-comments-on-exported-symbols
export class ListItemEl extends LitElement implements ListItem { export class ListItemEl extends LitElement implements ListItem {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(ListItemEl);
} }
/** /**

View File

@ -64,7 +64,7 @@ function getFocusedElement(activeDoc: Document|ShadowRoot = document):
*/ */
export abstract class Menu extends LitElement { export abstract class Menu extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(Menu);
} }
@query('md-list') private readonly listElement!: List|null; @query('md-list') private readonly listElement!: List|null;

View File

@ -16,7 +16,7 @@ import {requestUpdateOnAriaChange} from '../../internal/aria/delegate.js';
*/ */
export abstract class Progress extends LitElement { export abstract class Progress extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(Progress);
} }
/** /**

View File

@ -25,7 +25,7 @@ let maskId = 0;
*/ */
export class Radio extends LitElement { export class Radio extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(Radio);
} }
/** @nocollapse */ /** @nocollapse */

View File

@ -28,7 +28,7 @@ import {MdRipple} from '../../ripple/ripple.js';
*/ */
export class Slider extends LitElement { export class Slider extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(Slider);
} }
/** @nocollapse */ /** @nocollapse */

View File

@ -22,7 +22,7 @@ import {dispatchActivationClick, isActivationClick} from '../../internal/control
*/ */
export class Switch extends LitElement { export class Switch extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(Switch);
} }
/** @nocollapse */ /** @nocollapse */

View File

@ -35,7 +35,7 @@ export type TabVariant = 'primary'|'secondary';
*/ */
export class Tab extends LitElement { export class Tab extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(Tab);
} }
/** @nocollapse */ /** @nocollapse */

View File

@ -40,7 +40,7 @@ export type InvalidTextFieldType =
*/ */
export abstract class TextField extends LitElement { export abstract class TextField extends LitElement {
static { static {
requestUpdateOnAriaChange(this); requestUpdateOnAriaChange(TextField);
} }
/** @nocollapse */ /** @nocollapse */