                             selection.toggleSelection datum
                             datum.fixed = false
                         else
+                            # increment so second click isn't registered as a click
                             clickSemaphore += 1
                             datum.fixed = false
                     ), 250
                 ).on "dblclick", (datum, index) ->
                     selection.selectConnectedComponent datum
+        ) this
 
-
-        ) this
         @renderSelection = ->
             nodeSelection = graphView.getNodeSelection()
             if nodeSelection

                graph[link.source.text][link.target.text] = 1
                graph[link.target.text][link.source.text] = 1

            seen = {}
            visit node.text


        # using links meeting current Connectivity criteria
        @selectConnectedComponent = (node) ->

            visit = (text) ->
                unless _.has(seen, text)
                    seen[text] = 1
                    _.each graph[text], (ignore, neighborText) ->
                        visit neighborText

            # create adjacency list version of graph
            graph = {}
            lookup = {}
            _.each graphModel.getNodes(), (node) ->
