src/aria/templates/Section.js
function () {
                var differed = [];
                // it is possible, with the dialog, that we insert an already initialized section inside a non
                // initialized section
                if (this._initWidgetsDone) {
                    return differed;
                }
                this._initWidgetsDone = true;
                this.html = null; // html should no longer be used once widgets are initialized
                var content = this._content;
                var contentSize = content.length;
                for (var i = 0; i < contentSize; i++) {
                    var elt = content[i];
                    // case widget
                    if (elt._type == TYPE_BEHAVIOR) {
                        var bhv = elt.behavior;
                        if (bhv.initWidget) {
                            try {
                                bhv.initWidget();
                                if (bhv.isDiffered) {
                                    differed.push(bhv);
                                }
                            } catch (e) {
                                this.$logError(this.WIDGETCALL_ERROR, [bhv.$classpath, "initWidget"], e);
                            }

                        }
                    } else { // case section
                        differed = differed.concat(elt.initWidgets());
                    }
                }
                // The following line displays the processing indicator on the section (if needed)
                this.refreshProcessingIndicator();
                return differed;
            }
function () {
                var differed = [];
                // it is possible, with the dialog, that we insert an already initialized section inside a non
                // initialized section
                if (this._initWidgetsDone) {
                    return differed;
                }
                this._initWidgetsDone = true;
                this.html = null; // html should no longer be used once widgets are initialized
                var content = this._content;
                var contentSize = content.length;
                for (var i = 0; i < contentSize; i++) {
                    var elt = content[i];
                    // case widget
                    if (elt._type == TYPE_BEHAVIOR) {
                        var bhv = elt.behavior;
                        if (bhv.initWidget) {
                            try {
                                bhv.initWidget();
                                if (bhv.isDiffered) {
                                    differed.push(bhv);
                                }
                            } catch (e) {
                                this.$logError(this.WIDGETCALL_ERROR, [bhv.$classpath, "initWidget"], e);
                            }

                        }
                    } else { // case section
                        differed = differed.concat(elt.initWidgets());
                    }
                }
                // The following line displays the processing indicator on the section (if needed)
                this.refreshProcessingIndicator();
                return differed;
            }
function ( ) { var differed = [ ] ; // it is possible, with the dialog, that we insert an already initialized section inside a non // initialized section if ( this . _initWidgetsDone ) { return differed ; } this . _initWidgetsDone = true ; this . html = null ; // html should no longer be used once widgets are initialized var content = this . _content ; var contentSize = content . length ; for ( var i = 0 ; i < contentSize ; i ++ ) { var elt = content [ i ] ; // case widget if ( elt . _type == TYPE_BEHAVIOR ) { var bhv = elt . behavior ; if ( bhv . initWidget ) { try { bhv . initWidget ( ) ; if ( bhv . isDiffered ) { differed . push ( bhv ) ; } } catch ( e ) { this . $logError ( this . WIDGETCALL_ERROR , [ bhv . $classpath , "initWidget" ] , e ) ; } } } else { // case section differed = differed . concat ( elt . initWidgets ( ) ) ; } } // The following line displays the processing indicator on the section (if needed) this . refreshProcessingIndicator ( ) ; return differed ; }
Initialize the widgets contained in the section if not already done
@return {Array} List of element that will be rendered later on
Initialize the widgets contained in the section if not already done