Skip to content

Commit 94669e9

Browse files
committed
rename: private _resetElementStyles
1 parent ea47c55 commit 94669e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/sticky-header/sticky-header.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
185185
}
186186

187187
/** Reset element to its original CSS. */
188-
resetElement(): void {
188+
private _resetElementStyles(): void {
189189
this.element.classList.remove(STICK_START_CLASS);
190190
extendObject(this.element.style, this._originalStyles);
191191
}
@@ -270,7 +270,7 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
270270
(currentPosition < this._stickyRegionTop ||
271271
currentPosition > this._stickyRegionBottomThreshold)
272272
|| currentPosition >= this._stickyRegionBottomThreshold) {
273-
this.resetElement();
273+
this._resetElementStyles();
274274
if (currentPosition >= this._stickyRegionBottomThreshold) {
275275
this._unstuckElement();
276276
}

0 commit comments

Comments
 (0)