Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed Jun 22, 2020
1 parent 2a703ca commit 60d359c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@
"devDependencies": {
"esmtk": "^0.1.1",
"rollup-plugin-terser": "^5.2.0"
},
"standard": {
"ignore": [
"index.js"
]
}
}
20 changes: 10 additions & 10 deletions src/wc-bullet-chain.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/* eslint no-undef: 0 */
export class WCBulletChain extends HTMLElement {
constructor () {
super();
const template = document.createElement('template');
template.innerHTML = WCBulletChain.template();
this.attachShadow({ mode: 'open' });
this.shadowRoot.appendChild(document.importNode(template.content, true));
super()
const template = document.createElement('template')
template.innerHTML = WCBulletChain.template()
this.attachShadow({ mode: 'open' })
this.shadowRoot.appendChild(document.importNode(template.content, true))
}

async connectedCallback () {
const ul = this.shadowRoot.querySelector('ul');
ul.innerHTML = this.innerHTML;
this.innerHTML = '';
const ul = this.shadowRoot.querySelector('ul')
ul.innerHTML = this.innerHTML
this.innerHTML = ''
}

static template () {
Expand Down Expand Up @@ -74,8 +74,8 @@ export class WCBulletChain extends HTMLElement {
</style>
<ul>
</ul>
`;
`
}
}

customElements.define('wc-bullet-chain', WCBulletChain);
customElements.define('wc-bullet-chain', WCBulletChain)

0 comments on commit 60d359c

Please sign in to comment.