code: function(container) {
  		if (lang.isValue(container.group)) {
  	    	var group = WireIt.GroupUtils.getOuterGroup(container.group);
  	    	var groupIndex = this.groups.indexOf(group);
  	    
  	    	if (groupIndex == -1)
  				this.addGroup(group);
  	    	else
  				this.removeGroup(group, groupIndex);
  		}
  		else {
  	    	var index = this.containers.indexOf(container);
  	    	if (index == -1)
  				this.addContainer(container);
  	    	else
  				this.removeContainer(container, index);
  		}
     }
docs: toggle