backbone-baseview.js
function (preserveElems, clearConfigs) {
            if (!preserveElems) {
                this.removeElems();
            }
            this.subViews = [];
            if (this.parent && this.parent.subViews) {
                this.parent.subViews = this.subViews;
            }
            this._subViewsByType = {};
            this._subViewSingletons = {};
            this._subViewsByCid = {};
            this._subViewsByModelCid = {};
            if (clearConfigs) {
                this.config = {};
            }
            return this;
        }
function (preserveElems, clearConfigs) {
            if (!preserveElems) {
                this.removeElems();
            }
            this.subViews = [];
            if (this.parent && this.parent.subViews) {
                this.parent.subViews = this.subViews;
            }
            this._subViewsByType = {};
            this._subViewSingletons = {};
            this._subViewsByCid = {};
            this._subViewsByModelCid = {};
            if (clearConfigs) {
                this.config = {};
            }
            return this;
        }
function ( preserveElems , clearConfigs ) { if ( ! preserveElems ) { this . removeElems ( ) ; } this . subViews = [ ] ; if ( this . parent && this . parent . subViews ) { this . parent . subViews = this . subViews ; } this . _subViewsByType = { } ; this . _subViewSingletons = { } ; this . _subViewsByCid = { } ; this . _subViewsByModelCid = { } ; if ( clearConfigs ) { this . config = { } ; } return this ; }
Clears all subViews and subView data off of the SubViewManager instance
@memberOf SubViewManager#
@type {SubViewManager}
@param {Boolean} [preserveElems] If true, view $els are left on the DOM
@param {Boolean} [clearConfigs] If true, resets the subView configs as well
@return {SubViewManager}
Clears all subViews and subView data off of the SubViewManager instance