Skip to content

Commit

Permalink
fix(MdxComponent.js): remove trailing whitespace
Browse files Browse the repository at this point in the history
fix(MdxComponent.js): remove unused code
fix(MdxComponent.js): remove unused comments
fix(MdxComponent.js): remove unused functions
fix(MdxTestComponent.js): remove trailing whitespace
  • Loading branch information
cod3cow committed Dec 14, 2023
1 parent 59b830a commit 57cda5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/es/components/organisms/MdxComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class MdxComponent extends Mutation() {
}
}
}

connectedCallback () {
this.hidden = true
const showPromises = []
Expand Down Expand Up @@ -93,7 +93,7 @@ export default class MdxComponent extends Mutation() {
composed: true
}))
}

/**
* evaluates if a render is necessary
*
Expand All @@ -102,7 +102,7 @@ export default class MdxComponent extends Mutation() {
shouldRenderCSS () {
return !this.root.querySelector(`:host > style[_css], ${this.tagName} > style[_css]`)
}

/**
* evaluates if a render is necessary
*
Expand All @@ -111,17 +111,17 @@ export default class MdxComponent extends Mutation() {
shouldRenderHTML () {
return !this.root.querySelector('script')
}

/**
* renders the css
*
* @return {Promise<void>}
*/
renderCSS () {
this.css = /* css */``
this.css = /* css */''
return Promise.resolve()
}

/**
* renders the html
*
Expand All @@ -130,7 +130,7 @@ export default class MdxComponent extends Mutation() {
renderHTML () {
return this.loadDependency()
}

/**
* fetch dependency
*
Expand Down
2 changes: 1 addition & 1 deletion src/es/components/tests/MdxTestComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ export default class MdxTestComponent extends Shadow() {
}))
this.appendChild(unCheckBtn)
}
}
}

0 comments on commit 57cda5e

Please sign in to comment.