app.js
//deletes the catagory from the data structure and the DOM
deletes the catagory from the data structure and the DOM
deletes the catagory from the data structure and the DOM
function deleteCatagory (catagory) {
	var parent = document.getElementById('results');
	var child = document.querySelectorAll('.' + catagory.toString())[0];
	parent.removeChild(child);
	delete data[catagory];
	renderResultsJson();
}
function deleteCatagory ( catagory ) { var parent = document . getElementById ( 'results' ) ; var child = document . querySelectorAll ( '.' + catagory . toString ( ) ) [ 0 ] ; parent . removeChild ( child ) ; delete data [ catagory ] ; renderResultsJson ( ) ; }
deletes the catagory from the data structure and the DOM
deletes the catagory from the data structure and the DOM