Guest User

Untitled

a guest
Oct 22nd, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. // Create a class which implements the function of the element.
  2. // An instance of this class will serve as the backing
  3. // instance for the HTML tag for the element
  4. class NameTag extends HTMLElement { }
  5.  
  6. // Register the class with the `name` of the HTML tag for the element
  7. window.customElements.define('name-tag', NameTag);
Add Comment
Please, Sign In to add comment