Skip to content

Commit 5036725

Browse files
committed
Ensure protected methods aren't renamed
1 parent fb63133 commit 5036725

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/lit-html/src/directives/async-append.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
class AsyncAppendDirective extends AsyncReplaceDirective {
2222
private __childPart!: ChildPart;
2323

24-
protected __validatePartType(partInfo: PartInfo) {
24+
protected validatePartType(partInfo: PartInfo) {
2525
if (partInfo.type !== PartType.CHILD) {
2626
throw new Error('asyncAppend can only be used in child expressions');
2727
}

packages/lit-html/src/directives/async-replace.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ export class AsyncReplaceDirective extends AsyncDirective {
3333

3434
constructor(partInfo: PartInfo) {
3535
super(partInfo);
36-
this.__validatePartType(partInfo);
36+
this.validatePartType(partInfo);
3737
}
3838

3939
// Override point for AsyncReplace, which can only be used in ChildParts
40-
protected __validatePartType(_partInfo: PartInfo) {
40+
protected validatePartType(_partInfo: PartInfo) {
4141
// AsyncReplace can be used in any part type
4242
}
4343

0 commit comments

Comments
 (0)