html/scripts/highchart/modules/exporting.src.js
function (e) {
		var chart = e.target,
			i,
			elem;

		// Destroy the extra buttons added
		for (i = 0; i < chart.exportSVGElements.length; i++) {
			elem = chart.exportSVGElements[i];

			// Destroy and null the svg/vml elements
			if (elem) { // #1822
				elem.onclick = elem.ontouchstart = null;
				chart.exportSVGElements[i] = elem.destroy();
			}
		}

		// Destroy the divs for the menu
		for (i = 0; i < chart.exportDivElements.length; i++) {
			elem = chart.exportDivElements[i];

			// Remove the event handler
			removeEvent(elem, 'mouseleave');

			// Remove inline events
			chart.exportDivElements[i] = elem.onmouseout = elem.onmouseover = elem.ontouchstart = elem.onclick = null;

			// Destroy the div by moving to garbage bin
			discardElement(elem);
		}
	}
function (e) {
		var chart = e.target,
			i,
			elem;

		// Destroy the extra buttons added
		for (i = 0; i < chart.exportSVGElements.length; i++) {
			elem = chart.exportSVGElements[i];

			// Destroy and null the svg/vml elements
			if (elem) { // #1822
				elem.onclick = elem.ontouchstart = null;
				chart.exportSVGElements[i] = elem.destroy();
			}
		}

		// Destroy the divs for the menu
		for (i = 0; i < chart.exportDivElements.length; i++) {
			elem = chart.exportDivElements[i];

			// Remove the event handler
			removeEvent(elem, 'mouseleave');

			// Remove inline events
			chart.exportDivElements[i] = elem.onmouseout = elem.onmouseover = elem.ontouchstart = elem.onclick = null;

			// Destroy the div by moving to garbage bin
			discardElement(elem);
		}
	}
function ( e ) { var chart = e . target , i , elem ; // Destroy the extra buttons added for ( i = 0 ; i < chart . exportSVGElements . length ; i ++ ) { elem = chart . exportSVGElements [ i ] ; // Destroy and null the svg/vml elements if ( elem ) { // #1822 elem . onclick = elem . ontouchstart = null ; chart . exportSVGElements [ i ] = elem . destroy ( ) ; } } // Destroy the divs for the menu for ( i = 0 ; i < chart . exportDivElements . length ; i ++ ) { elem = chart . exportDivElements [ i ] ; // Remove the event handler removeEvent ( elem , 'mouseleave' ) ; // Remove inline events chart . exportDivElements [ i ] = elem . onmouseout = elem . onmouseover = elem . ontouchstart = elem . onclick = null ; // Destroy the div by moving to garbage bin discardElement ( elem ) ; } }
Destroy the buttons.
Destroy the buttons .