     term.focus()
     @applyStyle()
     @attachEvents()
-    @resizeToPane
+    @resizeToPane_
 
   resize: (cols, rows) ->
     return unless @term


  destroy: ->
    @off 'focus', @focus
    $(window).off 'resize', @resizeToPane
    if @ptyProcess
      @ptyProcess.terminate()
      @ptyProcess = null

        @term.write data
    catch error
      console.error error
    @resizeToPane_()
    @focusTerm()

  attached: () ->
