src/aria/templates/Section.js
function () {

                this.$raiseEvent("beforeRemoveContent");
                // so that the children section can see that it is useless to remove themselves from
                // their parent:
                this._removingContent = true;
                var content = this._content;
                var contentLength = content.length;
                for (var i = 0; i < contentLength; i++) {
                    var elt = content[i];
                    if (elt._type == TYPE_BEHAVIOR) {
                        var bhv = elt.behavior;
                        if (elt.id && this.idMap) {
                            this.idMap[elt.id] = null;
                            delete this.idMap[elt.id];
                        }
                        bhv.$dispose();
                    } else {
                        elt.$dispose();
                    }
                }
                this._content = [];
                this._initWidgetsDone = false;
                this._removingContent = false;
                this.$raiseEvent("afterRemoveContent");
            }
function () {

                this.$raiseEvent("beforeRemoveContent");
                // so that the children section can see that it is useless to remove themselves from
                // their parent:
                this._removingContent = true;
                var content = this._content;
                var contentLength = content.length;
                for (var i = 0; i < contentLength; i++) {
                    var elt = content[i];
                    if (elt._type == TYPE_BEHAVIOR) {
                        var bhv = elt.behavior;
                        if (elt.id && this.idMap) {
                            this.idMap[elt.id] = null;
                            delete this.idMap[elt.id];
                        }
                        bhv.$dispose();
                    } else {
                        elt.$dispose();
                    }
                }
                this._content = [];
                this._initWidgetsDone = false;
                this._removingContent = false;
                this.$raiseEvent("afterRemoveContent");
            }
function ( ) { this . $raiseEvent ( "beforeRemoveContent" ) ; // so that the children section can see that it is useless to remove themselves from // their parent: this . _removingContent = true ; var content = this . _content ; var contentLength = content . length ; for ( var i = 0 ; i < contentLength ; i ++ ) { var elt = content [ i ] ; if ( elt . _type == TYPE_BEHAVIOR ) { var bhv = elt . behavior ; if ( elt . id && this . idMap ) { this . idMap [ elt . id ] = null ; delete this . idMap [ elt . id ] ; } bhv . $dispose ( ) ; } else { elt . $dispose ( ) ; } } this . _content = [ ] ; this . _initWidgetsDone = false ; this . _removingContent = false ; this . $raiseEvent ( "afterRemoveContent" ) ; }
Remove any content from the section. The dom is not modified by this call.
Remove any content from the section . The dom is not modified by this call .