Skip to content

Commit

Permalink
updated: beta release
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Mar 9, 2019
1 parent 7a104b7 commit 23d3bda
Show file tree
Hide file tree
Showing 4 changed files with 339 additions and 1,323 deletions.
6 changes: 3 additions & 3 deletions index.next.js
Expand Up @@ -35,10 +35,10 @@ function moveChildren(source, target) {
export default function define(name, api, options) {
const {
css,
tag,
exports,
template
} = api
const tagImplementation = tag || {}
const tagImplementation = exports || {}

// define the new custom element
return customElements.define(name, class extends HTMLElement {
Expand All @@ -48,7 +48,7 @@ export default function define(name, api, options) {
// create the shadow DOM
this.shadow = this.attachShadow({ mode: 'open' })
this.componentFactory = component({
tag: tagImplementation,
exports: tagImplementation,
template
})

Expand Down

0 comments on commit 23d3bda

Please sign in to comment.