mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
refactor(packages): dry up core, html, and react UI architecture (#699)
This commit is contained in:
@@ -39,7 +39,7 @@ export class TimeElement extends MediaElement {
|
||||
super.connectedCallback();
|
||||
|
||||
if (__DEV__ && !this.#state.value) {
|
||||
logMissingFeature(TimeElement.tagName, 'time');
|
||||
logMissingFeature(this.localName, this.#state.displayName!);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,8 @@ export class TimeElement extends MediaElement {
|
||||
|
||||
if (!media) return;
|
||||
|
||||
const state = this.#core.getState(media);
|
||||
this.#core.setMedia(media);
|
||||
const state = this.#core.getState();
|
||||
|
||||
this.#signSpan.hidden = !state.negative;
|
||||
this.#signSpan.textContent = state.negative ? this.negativeSign : '';
|
||||
|
||||
Reference in New Issue
Block a user