code: function (candidate) {
  			if (!_container && candidate) {
  				var can = _currentInstance.getElement(candidate);
  				if (can.offsetParent) _currentInstance.setContainer(can.offsetParent);
  			}
  		}
docs: ensure that, if the current container exists, it is a DOM element and not a selector. if it does not exist and `candidate` is supplied, the offset parent of that element will be set as the Container. this is used to do a better default behaviour for the case that the user has not set a container: addEndpoint, makeSource, makeTarget and connect all call this method with the offsetParent of the element in question (for connect it is the source element). So if no container is set, it is inferred to be the offsetParent of the first element the user tries to connect.