                     @gotoFromWord(editor, $(selector).text())
                     event.handled = true
 
-
+    ###*
+     * Gets the correct selector when a class or namespace is clicked.
+     * @param  {jQuery.Event}  event  A jQuery event.
+     * @return {object|null}          A selector to be used with jQuery.
+    ###
     getSelector: (event) ->
         selector = event.currentTarget
 

            term = parser.getClassFromBufferPosition(editor, position)
            @gotoFromWord(editor, term)

    gotoFromWord: (editor, term) ->
        proxy = require './php-proxy.coffee'


            @selectView.setItems(listViewArray)
            @selectView.show()

    ###*
     * Registers the mouse events for alt-click.
     * @param  {TextEditor} editor  TextEditor to register events to.
    ###
    registerEvents: (editor) ->
        if editor.getGrammar().scopeName.match /text.html.php$/
            textEditorElement = atom.views.getView(editor)
            eventSelectors = '.inherited-class, .support.namespace, .support.class'
            scrollViewElement = $($(textEditorElement)[0].shadowRoot).find('.scroll-view')
