devpunks / snuggsi

snuggsi ツ - Easy Custom Elements in ~1kB

Home Page:https://snuggsi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐞 bug found 11/22/17: snuggsi.min.js:1 Uncaught TypeError: e[n].map is not a function

johnrlive opened this issue Β· comments

  1. Console error:

menu-item

snuggsi.min.js:1 Uncaught TypeError: e[n].map is not a function
    at TokenList.bind (snuggsi.min.js:1)
    at HTMLElement.Custom.n.render (snuggsi.min.js:1)
    at HTMLElement.Custom.n.connectedCallback (snuggsi.min.js:1)
    at t.upgrade (snuggsi.min.js:1)
    at Array.map (<anonymous>)
    at t.define (snuggsi.min.js:1)
    at snuggsi.min.js:1
    at index.html:16
  1. index.html attached

index_html_ _components

<!DOCTYPE html>
<script src=https://unpkg.com/snuggsi></script>
<title>menu-item</title>

<menu-item>
<header>
    {name}
</header>

</menu-item>

<script>

    Element `menu-item`
    (class extends HTMLElement{
        onconnect(event) {
            alert(this)
        }
    get name() { return "Ice Tea" }
    })

</script>

@johnrlive πŸ™ thanks for this.

@snuggs my pleasure homie! πŸ™

@snuggs Do you mind if I jump on this?

@mrbernnz DO IT DO IT! Don't ask for permission.... apologize for mistakes. @tmornini taught me ;-)