             @selectView.setItems(listViewArray)
             @selectView.show()
 
-    registerEvents: (editor, grammar) ->
-        if grammar.scopeName.match /text.html.php$/
+    ###*
+     * 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')

                    continue
                for paneItem in pane.items
                    if paneItem instanceof TextEditor
                        self.registerEvents paneItem, paneItem.getGrammar()

        @selectView = new GotoSelectView

    ###*
     * Goto the class the cursor is on
     * @param {TextEditor} editor
    ###
    gotoFromEditor: (editor) ->
        if editor.getGrammar().scopeName.match /text.html.php$/

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

    ###*
     * Goto the class from the term given.
     * @param  {TextEditor} editor  TextEditor to search for namespace of term.
     * @param  {string}     term    Term to search for.
    ###
    gotoFromWord: (editor, term) ->
        proxy = require './php-proxy.coffee'

