Skip to content

Instantly share code, notes, and snippets.

@Comandeer
Created July 7, 2018 20:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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