mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
Only emit editor-open event once (on first attachment)
This commit is contained in:
@@ -201,7 +201,9 @@ class Editor extends View
|
||||
else
|
||||
@gutter.addClass('drop-shadow')
|
||||
|
||||
@on 'attach', =>
|
||||
@on 'attach', (e) =>
|
||||
return if @attached
|
||||
@attached = true
|
||||
@calculateDimensions()
|
||||
@hiddenInput.width(@charWidth)
|
||||
@setMaxLineLength() if @softWrap
|
||||
|
||||
Reference in New Issue
Block a user