src/aria/templates/TemplateCtxt.js
function (tplDiv) {
            var params = this._cfg;
            /* check parameter: */
            this.$assert(320, tplDiv != null);
            /* must not be already linked: */
            this.$assert(322, params.tplDiv == null);
            /* must already have a markup waiting to be linked: */
            this.$assert(324, this._mainSection != null);
            params.tplDiv = tplDiv;
            params.div = (tplDiv.parentNode) ? tplDiv.parentNode : null;
            this.__addDebugInfo(tplDiv);
            this.insertSection(this._mainSection, true);
            // getMarkup + linkToPreviousMarkup is in fact doing the first refresh
            // so we call $afterRefresh here as well
            this.afterRefresh();
            this.$raiseEvent({
                name : "SectionRefreshed",
                sectionID : null
            });
        }
function (tplDiv) {
            var params = this._cfg;
            /* check parameter: */
            this.$assert(320, tplDiv != null);
            /* must not be already linked: */
            this.$assert(322, params.tplDiv == null);
            /* must already have a markup waiting to be linked: */
            this.$assert(324, this._mainSection != null);
            params.tplDiv = tplDiv;
            params.div = (tplDiv.parentNode) ? tplDiv.parentNode : null;
            this.__addDebugInfo(tplDiv);
            this.insertSection(this._mainSection, true);
            // getMarkup + linkToPreviousMarkup is in fact doing the first refresh
            // so we call $afterRefresh here as well
            this.afterRefresh();
            this.$raiseEvent({
                name : "SectionRefreshed",
                sectionID : null
            });
        }
function ( tplDiv ) { var params = this . _cfg ; /* check parameter: */ this . $assert ( 320 , tplDiv != null ) ; /* must not be already linked: */ this . $assert ( 322 , params . tplDiv == null ) ; /* must already have a markup waiting to be linked: */ this . $assert ( 324 , this . _mainSection != null ) ; params . tplDiv = tplDiv ; params . div = ( tplDiv . parentNode ) ? tplDiv . parentNode : null ; this . __addDebugInfo ( tplDiv ) ; this . insertSection ( this . _mainSection , true ) ; // getMarkup + linkToPreviousMarkup is in fact doing the first refresh // so we call $afterRefresh here as well this . afterRefresh ( ) ; this . $raiseEvent ( { name : "SectionRefreshed" , sectionID : null } ) ; }
Initializes the widgets of the template after the HTML markup returned by getMarkup has been inserted in
the DOM.
@param {HTMLElement} tplDiv element in which the HTML markup has been inserted
Initializes the widgets of the template after the HTML markup returned by getMarkup has been inserted in the DOM .