Skip to content

Commit 41d489f

Browse files
committed
prefix internals
1 parent 7b148a3 commit 41d489f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/uui-pagination/lib/uui-pagination.element.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class UUIPaginationElement extends LitElement {
5353
`,
5454
];
5555

56-
private observer = new ResizeObserver(this.calculateRange.bind(this));
56+
private _observer = new ResizeObserver(this._calculateRange.bind(this));
5757

5858
connectedCallback() {
5959
super.connectedCallback();
@@ -62,14 +62,14 @@ export class UUIPaginationElement extends LitElement {
6262
}
6363

6464
disconnectedCallback() {
65-
this.observer.disconnect();
65+
this._observer.disconnect();
6666
}
6767

6868
firstUpdated() {
69-
this.observer.observe(this._pagesGroup);
69+
this._observer.observe(this._pagesGroup);
7070

7171
this.updateLabel();
72-
this.calculateRange();
72+
this._calculateRange();
7373
}
7474

7575
willUpdate(changedProperties: Map<string | number | symbol, unknown>) {
@@ -85,7 +85,7 @@ export class UUIPaginationElement extends LitElement {
8585
}.`;
8686
}
8787

88-
private calculateRange() {
88+
private _calculateRange() {
8989
const containerWidth = this.offsetWidth;
9090

9191
// get all the buttons with .nav-button class and sum up their widths

0 commit comments

Comments
 (0)