MCPcopy Create free account
hub / github.com/ampproject/amphtml / ctor

Function ctor

testing/describes.js:957–961  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

955 const name = opt_name || 'amp-element';
956 const proto = createAmpElementForTesting(win).prototype;
957 const ctor = function () {
958 const el = win.document.createElement(name);
959 el.__proto__ = proto;
960 return el;
961 };
962 ctor.prototype = proto;
963 proto.constructor = ctor;
964

Callers 1

initializeMediaPool_Method · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected