     animationFramePending = @pendingScrollLeft?
     @pendingScrollLeft = scrollLeft
     unless animationFramePending
-      @requestAnimationFrame =>
+      requestAnimationFrame =>
         @props.editor.setScrollLeft(@pendingScrollLeft)
         @pendingScrollLeft = null
 

    animationFramePending = @pendingScrollTop?
    @pendingScrollTop = scrollTop
    unless animationFramePending
      @requestAnimationFrame =>
        @props.editor.setScrollTop(@pendingScrollTop)

  onHorizontalScroll: (scrollLeft) ->

    @remeasureCharacterWidthsIfNeeded(prevState)

  requestUpdate: ->
    if @performSyncUpdates ? EditorComponent.performSyncUpdates
      @forceUpdate()
    else unless @updateRequested
      @updateRequested = true
      setImmediate =>
        @updateRequested = false
        @forceUpdate() if @isMounted()

  getRenderedRowRange: ->
    {editor, lineOverdrawMargin} = @props
