src/layersupport.js
function (layers) {
		var layersArray = this._toArray(layers),
		    separated = this._checkInGetSeparated(layersArray),
		    groups = separated.groups,
		    i, group, id;

		// Batch add all single layers.
		this._originalAddLayers(separated.singles);

		// Add Layer Groups to the map so that they are registered there and
		// the map fires 'layeradd' events for them as well.
		for (i = 0; i < groups.length; i++) {
			group = groups[i];
			id = L.stamp(group);
			this._proxyLayerGroups[id] = group;
			delete this._proxyLayerGroupsNeedRemoving[id];
			if (this._map) {
				this._map._originalAddLayer(group);
			}
		}
	}
function (layers) {
		var layersArray = this._toArray(layers),
		    separated = this._checkInGetSeparated(layersArray),
		    groups = separated.groups,
		    i, group, id;

		// Batch add all single layers.
		this._originalAddLayers(separated.singles);

		// Add Layer Groups to the map so that they are registered there and
		// the map fires 'layeradd' events for them as well.
		for (i = 0; i < groups.length; i++) {
			group = groups[i];
			id = L.stamp(group);
			this._proxyLayerGroups[id] = group;
			delete this._proxyLayerGroupsNeedRemoving[id];
			if (this._map) {
				this._map._originalAddLayer(group);
			}
		}
	}
function ( layers ) { var layersArray = this . _toArray ( layers ) , separated = this . _checkInGetSeparated ( layersArray ) , groups = separated . groups , i , group , id ; // Batch add all single layers. this . _originalAddLayers ( separated . singles ) ; // Add Layer Groups to the map so that they are registered there and // the map fires 'layeradd' events for them as well. for ( i = 0 ; i < groups . length ; i ++ ) { group = groups [ i ] ; id = L . stamp ( group ) ; this . _proxyLayerGroups [ id ] = group ; delete this . _proxyLayerGroupsNeedRemoving [ id ] ; if ( this . _map ) { this . _map . _originalAddLayer ( group ) ; } } }
Checks in and adds an array of layers to this group.
Layer Groups are also added to the map to fire their event.
@param layers (L.Layer|L.Layer[]) single and/or group layers to be added.
@returns {L.MarkerClusterGroup.LayerSupport} this.
Checks in and adds an array of layers to this group . Layer Groups are also added to the map to fire their event .