backbone-baseview.js
function (key) {
            if (key.cid) {
                return this._subViewsByCid[key.cid] || this._subViewsByModelCid[key.cid];
            }
            if (key.indexOf('.') > -1 && this.dotNotation) {
                var segs = key.split('.');
                var view = this.parent;
                while (segs.length && view) { view = view.subs.get(segs.shift()); }
                return view;
            }

            return this._subViewSingletons[key] || this._subViewsByCid[key] ||
                this._subViewsByModelCid[key] || this._subViewsByType[key];
        }
function (key) {
            if (key.cid) {
                return this._subViewsByCid[key.cid] || this._subViewsByModelCid[key.cid];
            }
            if (key.indexOf('.') > -1 && this.dotNotation) {
                var segs = key.split('.');
                var view = this.parent;
                while (segs.length && view) { view = view.subs.get(segs.shift()); }
                return view;
            }

            return this._subViewSingletons[key] || this._subViewsByCid[key] ||
                this._subViewsByModelCid[key] || this._subViewsByType[key];
        }
function ( key ) { if ( key . cid ) { return this . _subViewsByCid [ key . cid ] || this . _subViewsByModelCid [ key . cid ] ; } if ( key . indexOf ( '.' ) > - 1 && this . dotNotation ) { var segs = key . split ( '.' ) ; var view = this . parent ; while ( segs . length && view ) { view = view . subs . get ( segs . shift ( ) ) ; } return view ; } return this . _subViewSingletons [ key ] || this . _subViewsByCid [ key ] || this . _subViewsByModelCid [ key ] || this . _subViewsByType [ key ] ; }
Get a subView instance or an array if multiple instances
match your key.
@memberOf SubViewManager#
@type {SubViewManager}
@param {Object|String} [key]
The key to a subView singleton, the view's cid
the associated model cid, the associated model itself,
or the associated view itself. If your key is a
string, you can use
@return {Backbone.View|Backbone.View[]}
Get a subView instance or an array if multiple instances match your key .