Skip to content

Instantly share code, notes, and snippets.

@Comandeer
Created July 7, 2018 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Comandeer/6dd01355ee8344ac444e2ed49d70250b to your computer and use it in GitHub Desktop.
Save Comandeer/6dd01355ee8344ac444e2ed49d70250b to your computer and use it in GitHub Desktop.
registerComponent's new version
function registerComponent( { template, style, name } ) {
class UnityComponent extends HTMLElement {
[…]
}
return customElements.define( name, UnityComponent );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment