mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Only call gutter.afterAttach once
This commit is contained in:
committed by
Kevin Sawicki
parent
e039dab0f6
commit
d5b1146b9b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user