From 290acb356c42da17dcc10c2125e1fa30f2536d27 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 27 Feb 2015 21:01:46 +0100 Subject: [PATCH] :art: Remove unnecessary newlines --- src/text-editor-presenter.coffee | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/text-editor-presenter.coffee b/src/text-editor-presenter.coffee index d2afd9efc..6e4c8e928 100644 --- a/src/text-editor-presenter.coffee +++ b/src/text-editor-presenter.coffee @@ -36,7 +36,7 @@ class TextEditorPresenter @emitter.on 'needs-update', callback needsUpdate: -> - @emitter.emit "needs-update" unless @updating + @emitter.emit "needs-update" if @isBatching() transferMeasurementsToModel: -> @model.setHeight(@explicitHeight) if @explicitHeight? @@ -442,7 +442,6 @@ class TextEditorPresenter startRow = Math.floor(@scrollTop / @lineHeight) - @lineOverdrawMargin @startRow = Math.max(0, startRow) - updateEndRow: -> return unless @scrollTop? and @lineHeight? and @height? @@ -451,7 +450,6 @@ class TextEditorPresenter endRow = startRow + visibleLinesCount + @lineOverdrawMargin @endRow = Math.min(@model.getScreenLineCount(), endRow) - updateScrollWidth: -> return unless @contentWidth? and @clientWidth? @@ -492,7 +490,6 @@ class TextEditorPresenter @updateScrollbarDimensions() @updateScrollWidth() - updateClientHeight: -> return unless @height? and @horizontalScrollbarHeight?