src/aria/templates/TemplateCtxt.js
function (section, skipInsertHTML, refreshArgs) {
            // PROFILING // var profilingId = this.$startMeasure("Inserting section in DOM from " +
            // PROFILING // this.tplClasspath);
            var differed;
            var params = this._cfg;
            var tpl = this._tpl;
            var domElt = section.id ? section.getDom() : params.tplDiv;

            if (domElt) {
                if (!skipInsertHTML) {
                    section.insertHTML(domElt, refreshArgs);
                }
                if (!section.id) {
                    // the whole template is being refreshed; let's apply the correct size
                    // to its DOM container
                    ariaTemplatesLayout.setDivSize(domElt, tpl.$width, tpl.$height, 'hidden');
                }

                // update expando of container
                ariaUtilsDelegate.addExpando(domElt, section.delegateId);

                differed = section.initWidgets();
                this.__processDifferedItems(differed);
            } else {
                // TODO: LOG ERROR
            }
            if (!skipInsertHTML) {
                // Redundant, but makes sure that insertSection doesn't dispose the template
                this.$assert(743, params.tplDiv && tpl);
                ariaUtilsDom.refreshDomElt(params.tplDiv);
            }
            // PROFILING // this.$stopMeasure(profilingId);
        }
function (section, skipInsertHTML, refreshArgs) {
            // PROFILING // var profilingId = this.$startMeasure("Inserting section in DOM from " +
            // PROFILING // this.tplClasspath);
            var differed;
            var params = this._cfg;
            var tpl = this._tpl;
            var domElt = section.id ? section.getDom() : params.tplDiv;

            if (domElt) {
                if (!skipInsertHTML) {
                    section.insertHTML(domElt, refreshArgs);
                }
                if (!section.id) {
                    // the whole template is being refreshed; let's apply the correct size
                    // to its DOM container
                    ariaTemplatesLayout.setDivSize(domElt, tpl.$width, tpl.$height, 'hidden');
                }

                // update expando of container
                ariaUtilsDelegate.addExpando(domElt, section.delegateId);

                differed = section.initWidgets();
                this.__processDifferedItems(differed);
            } else {
                // TODO: LOG ERROR
            }
            if (!skipInsertHTML) {
                // Redundant, but makes sure that insertSection doesn't dispose the template
                this.$assert(743, params.tplDiv && tpl);
                ariaUtilsDom.refreshDomElt(params.tplDiv);
            }
            // PROFILING // this.$stopMeasure(profilingId);
        }
function ( section , skipInsertHTML , refreshArgs ) { // PROFILING // var profilingId = this.$startMeasure("Inserting section in DOM from " + // PROFILING // this.tplClasspath); var differed ; var params = this . _cfg ; var tpl = this . _tpl ; var domElt = section . id ? section . getDom ( ) : params . tplDiv ; if ( domElt ) { if ( ! skipInsertHTML ) { section . insertHTML ( domElt , refreshArgs ) ; } if ( ! section . id ) { // the whole template is being refreshed; let's apply the correct size // to its DOM container ariaTemplatesLayout . setDivSize ( domElt , tpl . $width , tpl . $height , 'hidden' ) ; } // update expando of container ariaUtilsDelegate . addExpando ( domElt , section . delegateId ) ; differed = section . initWidgets ( ) ; this . __processDifferedItems ( differed ) ; } else { // TODO: LOG ERROR } if ( ! skipInsertHTML ) { // Redundant, but makes sure that insertSection doesn't dispose the template this . $assert ( 743 , params . tplDiv && tpl ) ; ariaUtilsDom . refreshDomElt ( params . tplDiv ) ; } // PROFILING // this.$stopMeasure(profilingId); }
Insert the section's markup in the DOM
Insert the section s markup in the DOM