Only call gutter.afterAttach once

This commit is contained in:
Corey Johnson
2012-10-01 10:32:30 -07:00
committed by Kevin Sawicki
parent e039dab0f6
commit d5b1146b9b

View File

@@ -13,8 +13,10 @@ class Gutter extends View
highestNumberWidth: null
afterAttach: (onDom) ->
return if @attached or not onDom
@attached = true
@editor().on 'cursor-move', => @highlightCursorLine()
@calculateWidth() if onDom
@calculateWidth()
editor: ->
@parentView