                     continue
                 for paneItem in pane.items
                     if paneItem instanceof TextEditor
-                        self.registerEvents paneItem, paneItem.getGrammar()
+                        self.registerEvents paneItem
 
         @selectView = new GotoSelectView
 
     ###*
      * Goto the class the cursor is on
-     * @param {TextEditor} editor
+     * @param TextEditor editor TextEditor to pull term from.
     ###
     gotoFromEditor: (editor) ->
         if editor.getGrammar().scopeName.match /text.html.php$/

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

    registerEvents: (editor, grammar) ->
        if grammar.scopeName.match /text.html.php$/
            textEditorElement = atom.views.getView(editor)
            eventSelectors = '.inherited-class, .support.namespace, .support.class'
            scrollViewElement = $($(textEditorElement)[0].shadowRoot).find('.scroll-view')

            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'

