refactor: Convert protected methods to private (#2358)

This commit is contained in:
Dermot Duffy
2026-02-19 20:47:59 -08:00
committed by GitHub
parent 529500ed94
commit 0a67df9a25
122 changed files with 815 additions and 829 deletions
+5 -5
View File
@@ -4,9 +4,9 @@ import { Timer } from '../utils/timer';
import { CardInteractionAPI } from './types';
export class InteractionManager {
protected _timer = new Timer();
protected _api: CardInteractionAPI;
protected _interacted = false;
private _timer = new Timer();
private _api: CardInteractionAPI;
private _interacted = false;
constructor(api: CardInteractionAPI) {
this._api = api;
@@ -26,7 +26,7 @@ export class InteractionManager {
return this._interacted;
}
protected _setInteraction(val: boolean): void {
private _setInteraction(val: boolean): void {
this._interacted = val;
setOrRemoveAttribute(
this._api.getCardElementManager().getElement(),
@@ -36,7 +36,7 @@ export class InteractionManager {
this._api.getConditionStateManager().setState({ interaction: val });
}
protected _reportInteraction(): void {
private _reportInteraction(): void {
this._timer.stop();
this._setInteraction(true);