client/splunk.ui.charting.js
function destroyItem(item) {
			var checkbox = item.checkbox;

			// pull out from the array
			//erase(allItems, item);

			// destroy SVG elements
			each(['legendItem', 'legendLine', 'legendSymbol'], function (key) {
				if (item[key]) {
					item[key].destroy();
				}
			});

			if (checkbox) {
				discardElement(item.checkbox);
			}


		}
function destroyItem(item) {
			var checkbox = item.checkbox;

			// pull out from the array
			//erase(allItems, item);

			// destroy SVG elements
			each(['legendItem', 'legendLine', 'legendSymbol'], function (key) {
				if (item[key]) {
					item[key].destroy();
				}
			});

			if (checkbox) {
				discardElement(item.checkbox);
			}


		}
function destroyItem ( item ) { var checkbox = item . checkbox ; // pull out from the array
 //erase(allItems, item);
 // destroy SVG elements
 each ( [ 'legendItem' , 'legendLine' , 'legendSymbol' ] , function ( key ) { if ( item [ key ] ) { item [ key ] . destroy ( ) ; } } ) ; if ( checkbox ) { discardElement ( item . checkbox ) ; } }
Destroy a single legend item
@param {Object} item The series or point
Destroy a single legend item