Skip to content

Instantly share code, notes, and snippets.

@crysfel
Created May 11, 2015 18:34
Show Gist options
  • Save crysfel/7293828a9bee95c1cf88 to your computer and use it in GitHub Desktop.
Save crysfel/7293828a9bee95c1cf88 to your computer and use it in GitHub Desktop.
Web Component
var Panel = Object.create(HTMLElement.prototype); //Step 1
var MyPanel = document.registerElement('my-panel', { //Step 2
prototype: Panel
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment