* Get the constructor of the (already defined) custom element. * * @param {string} name * @return {!CustomElementConstructorDef|undefined}
(name)
| 131 | * @return {!CustomElementConstructorDef|undefined} |
| 132 | */ |
| 133 | get(name) { |
| 134 | const def = this.registry_.getByName(name); |
| 135 | if (def) { |
| 136 | return def.ctor; |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * Returns a promise that waits until the custom element is defined. |