MCPcopy
hub / github.com/ampproject/amphtml / define

Method define

testing/fake-dom.js:708–714  ·  view source on GitHub ↗

* Custom Elements V1 API. * @param {string} name * @param {!Function} klass

(name, klass)

Source from the content-addressed store, hash-verified

706 * @param {!Function} klass
707 */
708 define(name, klass) {
709 if (this.elements[name]) {
710 throw new Error('custom element already defined: ' + name);
711 }
712 this.elements[name] = klass.prototype;
713 this.count++;
714 }
715}
716
717export class FakeMutationObserver {

Calls

no outgoing calls

Tested by

no test coverage detected