backbone-baseview.js
function (name, config) {
            var map = (isObject(name) && !isArray(name)) ? name : false;
            if (map) {
                each(map, this._addConfig, this);
                return this;
            }

            return this._addConfig(config, name);
        }
function (name, config) {
            var map = (isObject(name) && !isArray(name)) ? name : false;
            if (map) {
                each(map, this._addConfig, this);
                return this;
            }

            return this._addConfig(config, name);
        }
function ( name , config ) { var map = ( isObject ( name ) && ! isArray ( name ) ) ? name : false ; if ( map ) { each ( map , this . _addConfig , this ) ; return this ; } return this . _addConfig ( config , name ) ; }
Add an configuration for a subview to the SubViewManager.
It can be instantiated later with the add function.
@memberOf SubViewManager#
@type {SubViewManager}
@class
@method addConfig
@param {String} name
The name or type that you would like use to refer to subViews
created with this config
@param {String|Function} construct
The constructor function for this subView. If its a string, the
string must resolve to a global name-spaced function in dot notation.
(e.g. 'Backbone.imageUpload.View')
@param {String} [options]
The options or base options you would like to pass to the constructor
whenever it is initialized.
@param {String|HTMLElement} [location]
If you want to be able to automatically place a subView's DOM element
somewhere in the parent view, pass a selector or DOM element or $ instance
here that can be used by jquery as a wrapper to append the subView $el
@param {Boolean} [singleton]
If you want this view to be a singleton subView. A singleton subView
will only allow one instance of it to be created.
@return {SubViewManager}
 
Add an configuration for a subview to the SubViewManager.
It can be instantiated later with the add function.
@memberOf SubViewManager#
@type {SubViewManager}
@method addConfig
@param {Object} map
A object of key names/types to config objects, so you can add multiple configs
@example
// A config object should have the following format:
{
construct:  // Constructor function or string version (i.e. "Backbone.BaseView")
options:    // Any options you want to pass to the initialize function
singleton:  // if the object should be configured as a singleton or not
location:   // A string or jQuery instance in the parent view element. Or
// a function that returns one of these. The subview el will
// be appended to that location
}
@return {SubViewManager}
 
Add an configuration for a subview to the SubViewManager.
It can be instantiated later with the add function.
@memberOf SubViewManager#
@type {SubViewManager}
@method addConfig
@param {String} name
The name or type that you would like use to refer to subViews
created with this config
@param {Object} config
The configuration object (uses the format described above)
@return {SubViewManager}
Add an configuration for a subview to the SubViewManager . It can be instantiated later with the add function .