code: function() {
  		
  		if (this.containers.length > 0 || this.groups.length > 0) {
  	    	var group = new WireIt.Group(this, this.layer);
  	    	var tempGroups = [];
  	    	var tempContainers = [];
  	    
  	    	for (var cI in this.containers) {
  				var c = this.containers[cI];
  				group.addContainer(c);
  				tempContainers.push(c);
  	    	}
  	    
  	    	for (var gI in this.groups) {
  				var g = this.groups[gI];
  				group.addGroup(g);
  				this.layer.removeGroup(g);
  				tempGroups.push(g);
  	    	}
  	    
  	    	for (var tcI in tempContainers)
  				this.removeContainer(tempContainers[tcI]);
  	    	for (var tgI in tempGroups)
  				this.removeGroup(tempGroups[tgI]);
  		
  	    	this.layer.groups.push(group);
  	    	group.events.groupEmptied.subscribe(function() { this.layer.removeGroup.call(this.layer, group); }, this, true);	    
  
  	    	this.showGroup(group, true);
  		}
     }
docs: makeGroup