 				.style('marker-start', (edge) -> if edge.left then 'url(#startArrow)' else '')
 				.style('marker-end', (edge) -> if edge.right then 'url(#endArrow)' else '')
 				.on 'mousedown', (edge) ->
-					# select link
 					mouseDownEdge = edge
-					selectedNode = null
 					restart()
 
 			# remove old links

		nodes = svg.append('svg:g').selectAll('g')

		# mouse event vars
		selectedNode = null
		mouseDownEdge = null
		mouseDownNode = null
		mouseUpNode = null

						net.addEdge(edge)
						$scope.$apply() # Quick save net to storage

				restart()

			# show node text
