Graph area is displayed when user click icons in the tree

I check the click event when user click the icon and show graph on screen. I added the following code in click event function.

if ("a" == target.parentElement.localName) {
	var parentPath = target.parentElement;
	var iconId = $(parentPath).attr("id");
	treeModel = instance.collection.get(iconId);
	instance.clickModel(treeModel);
}