code: function(name, extendee) {
        // build side-chained lists to optimize iterations
        this.optimizePropertyMaps(this.prototype);
        this.createPropertyAccessors(this.prototype);
        // install mdv delegate on template
        this.installBindingDelegate(this.fetchTemplate());
        // install external stylesheets as if they are inline
        this.installSheets();
        // adjust any paths in dom from imports
        this.resolveElementPaths(this);
        // compile list of attributes to copy to instances
        this.accumulateInstanceAttributes();
        // parse on-* delegates declared on `this` element
        this.parseHostEvents();
        //
        // install a helper method this.resolvePath to aid in 
        // setting resource urls. e.g.
        // this.$.image.src = this.resolvePath('images/foo.png')
        this.addResolvePathApi();
        // under ShadowDOMPolyfill, transforms to approximate missing CSS features
        if (hasShadowDOMPolyfill) {
          WebComponents.ShadowCSS.shimStyling(this.templateContent(), name,
            extendee);
        }
        // allow custom element access to the declarative context
        if (this.prototype.registerCallback) {
          this.prototype.registerCallback(this);
        }
      }
docs: implement various declarative features