Skip to content

Commit d6049ac

Browse files
committed
Clearer declarations
1 parent 5a8a0a8 commit d6049ac

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/slider/SliderWebcomponent.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,16 @@ export class SliderWebcomponent extends BaseCustomWebComponentConstructorAppend
159159

160160
attributeChangedCallback(name: string, oldValue: string, newValue: string) {
161161
if (name == "value-min"){
162-
this._valueMinChanged();
162+
this._valueMinAttributeChanged();
163163
}
164164
if (name === "value-max"){
165-
this.valueMaxChanged();
165+
this._valueMaxAttributeChanged();
166166
}
167167
if (name == "min"){
168-
this.minChanged();
168+
this._minAttributeChanged();
169169
}
170170
if (name === "max"){
171-
this.maxChanged();
171+
this._maxAttributeChanged();
172172
}
173173
}
174174

@@ -304,24 +304,24 @@ export class SliderWebcomponent extends BaseCustomWebComponentConstructorAppend
304304
}
305305
}
306306

307-
private _valueMinChanged() {
307+
private _valueMinAttributeChanged() {
308308
if (!this._ready) return;
309309
this._numberInputs[0].value = this.valueMin.toString();
310310
this._numberInputs[0].dispatchEvent(new Event('blur', { bubbles: true }));
311311
}
312312

313-
private valueMaxChanged() {
313+
private _valueMaxAttributeChanged() {
314314
if (!this._ready) return;
315315
this._numberInputs[1].value = this.valueMax.toString();
316316
this._numberInputs[1].dispatchEvent(new Event('blur', { bubbles: true }));
317317
}
318318

319-
private minChanged() {
319+
private _minAttributeChanged() {
320320
if (!this._ready) return;
321321
this._updateRangeInputsMinMax();
322322
}
323323

324-
private maxChanged() {
324+
private _maxAttributeChanged() {
325325
if (!this._ready) return;
326326
this._updateRangeInputsMinMax();
327327
}

0 commit comments

Comments
 (0)