chore: format
This commit is contained in:
parent
da85a71aec
commit
9480f37844
1 changed files with 15 additions and 18 deletions
|
@ -94,7 +94,7 @@ export class WebComponent extends HTMLElement {
|
|||
this[property] = currentValue === "" || currentValue;
|
||||
this[camelCaps] = this[property]; // remove on v2
|
||||
|
||||
this.#handleUpdateProp(camelCaps, currentValue)
|
||||
this.#handleUpdateProp(camelCaps, currentValue);
|
||||
|
||||
this.render();
|
||||
this.onChanges({ property, previousValue, currentValue });
|
||||
|
@ -102,11 +102,9 @@ export class WebComponent extends HTMLElement {
|
|||
}
|
||||
|
||||
#handleUpdateProp(key, value) {
|
||||
const restored = this.#restoreType(value, this.#typeMap[key]);
|
||||
|
||||
const restored = this.#restoreType(value, this.#typeMap[key])
|
||||
|
||||
if (restored !== this.props[key])
|
||||
this.props[key] = value;
|
||||
if (restored !== this.props[key]) this.props[key] = value;
|
||||
}
|
||||
|
||||
#getCamelCaps(kebab) {
|
||||
|
@ -135,7 +133,6 @@ export class WebComponent extends HTMLElement {
|
|||
);
|
||||
};
|
||||
|
||||
|
||||
return {
|
||||
set(obj, prop, value) {
|
||||
const oldValue = obj[prop];
|
||||
|
@ -151,7 +148,7 @@ export class WebComponent extends HTMLElement {
|
|||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue