src/service/extensions-impl.js
/**
   * Registers the element implementation with the current extension.
   * @param {string} name
   * @param {!Function} implementationClass
   * @param {?string|undefined} css
   * @private
   * @restricted
   */
Registers the element implementation with the current extension.
Registers the element implementation with the current extension .
addElement_(name, implementationClass, css) {
    const holder = this.getCurrentExtensionHolder_(name);
    holder.extension.elements[name] = {implementationClass, css};
    this.addDocFactory_(ampdoc => {
      this.installElement_(ampdoc, name, implementationClass, css);
    });
  }
addElement_ ( name , implementationClass , css ) { const holder = this . getCurrentExtensionHolder_ ( name ) ; holder . extension . elements [ name ] = { implementationClass , css } ; this . addDocFactory_ ( ampdoc => { this . installElement_ ( ampdoc , name , implementationClass , css ) ; } ) ; }
Registers the element implementation with the current extension.
Registers the element implementation with the current extension .