code: function () {
  		var legend = this,
  			legendGroup = legend.group,
  			box = legend.box;
  
  		if (box) {
  			legend.box = box.destroy();
  		}
  
  		if (legendGroup) {
  			legend.group = legendGroup.destroy();
  		}
  	}
docs: Destroys the legend.