🎨 Remove unnecessary newlines

This commit is contained in:
Antonio Scandurra
2015-02-27 21:01:46 +01:00
parent fbec9e31c4
commit 290acb356c

View File

@@ -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?