Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Jan 7, 2025
1 parent a0c07cb commit 22a6ade
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/client/client-host-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,16 @@ export const getHostRef = (ref: d.RuntimeRef): d.HostRef | undefined => hostRefs
* @param hostRef that instances `HostRef` object
*/
export const registerInstance = (lazyInstance: any, hostRef: d.HostRef) => {
<<<<<<< HEAD
hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
if (BUILD.modernPropertyDecls && (BUILD.state || BUILD.prop)) {
reWireGetterSetter(lazyInstance, hostRef);
}
=======
hostRef.$lazyInstance$ = lazyInstance;
hostRefKeys.push(lazyInstance);
return hostRefs.set(lazyInstance, hostRef);
>>>>>>> fb8335e25 (prettier)
};

/**
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/disconnected-callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ export const disconnectedCallback = async (elm: d.HostElement) => {
/**
* Remove the element from the `rootAppliedStyles` WeakMap
*/
if(rootAppliedStyles.has(elm)) {
if (rootAppliedStyles.has(elm)) {
rootAppliedStyles.delete(elm);
}

/**
* Remove the shadow root from the `rootAppliedStyles` WeakMap
*/
if(elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot as unknown as Element)) {
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot as unknown as Element)) {
rootAppliedStyles.delete(elm.shadowRoot as unknown as Element);
}
};

0 comments on commit 22a6ade

Please sign in to comment.