Remove unneeded class addition

This commit is contained in:
Kevin Sawicki
2012-10-01 15:26:27 -07:00
parent 41cdf130fb
commit edfd61c702
2 changed files with 2 additions and 7 deletions

View File

@@ -1596,7 +1596,7 @@ describe "Editor", ->
expect(miniEditor.find('.line.cursor-line').length).toBe 0
describe "gutter line highlighting", ->
fdescribe "gutter line highlighting", ->
beforeEach ->
editor.attachToDom(heightInLines: 5.5)

View File

@@ -41,16 +41,11 @@ class Gutter extends View
cursorScreenRow = @editor().getCursorScreenPosition().row
@lineNumbers[0].innerHTML = $$$ ->
for row in rows
rowClass = 'line-number'
rowValue = null
if row == lastScreenRow
rowValue = ''
else
rowValue = row + 1
rowClass += ' cursor-line-number' if row == cursorScreenRow
@div {class: rowClass}, rowValue
@div {class: 'line-number'}, rowValue
lastScreenRow = row
@calculateWidth()