mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Rename 'editor-path-change' to 'editor:path-changed'
This commit is contained in:
@@ -477,9 +477,9 @@ class Editor extends View
|
||||
@showBufferConflictAlert(@activeEditSession)
|
||||
|
||||
@activeEditSession.on "path-changed.editor", =>
|
||||
@trigger 'editor-path-change'
|
||||
@trigger 'editor:path-changed'
|
||||
|
||||
@trigger 'editor-path-change'
|
||||
@trigger 'editor:path-changed'
|
||||
@trigger 'editor:active-edit-session-changed', [@activeEditSession, index]
|
||||
@resetDisplay()
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ class RootView extends View
|
||||
editor.addClass('active')
|
||||
|
||||
if not editor.mini
|
||||
editor.on 'editor-path-change.root-view', =>
|
||||
editor.on 'editor:path-changed.root-view', =>
|
||||
@trigger 'active-editor-path-change', editor.getPath()
|
||||
if not previousActiveEditor or editor.getPath() != previousActiveEditor.getPath()
|
||||
@trigger 'active-editor-path-change', editor.getPath()
|
||||
|
||||
Reference in New Issue
Block a user