UNPKG

@stencil/router

Version:
19 lines (18 loc) 635 B
(function() { if ( // No Reflect, no classes, no need for shim because native custom elements // require ES2015 classes or Reflect. window.Reflect === undefined || window.customElements === undefined ) { return; } var BuiltInHTMLElement = HTMLElement; window.HTMLElement = /** @this {!Object} */ function HTMLElement() { return Reflect.construct( BuiltInHTMLElement, [], /** @type {!Function} */ (this.constructor)); }; HTMLElement.prototype = BuiltInHTMLElement.prototype; HTMLElement.prototype.constructor = HTMLElement; Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement); })();