custom-elements
Get the global customElements
object for the current context.
CUSTOMELEMENTS([newCustomElements])
Optionally sets, and returns, the customElements
object for the context.
var customElementsShim = require('some-custom-elements-shim');
CUSTOMELEMENTS(customElementsShim);
CUSTOMELEMENTS() //-> customElementsShim
Parameters
- customElements
{Object}
:An optional CustomElementRegistry-like object to set as the context's customElements
Returns
{Object}
:
The customElements object for this JavaScript environment.