mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Use subscribe instead of on
This commit is contained in:
@@ -29,9 +29,9 @@ class FileView extends View
|
||||
@fileName.addClass('text-icon')
|
||||
|
||||
if git?
|
||||
git.on 'status-changed', (path, status) =>
|
||||
@subscribe git, 'status-changed', (path, status) =>
|
||||
@updateStatus() if path is @getPath()
|
||||
git.on 'statuses-changed', =>
|
||||
@subscribe git, 'statuses-changed', =>
|
||||
@updateStatus()
|
||||
|
||||
@updateStatus()
|
||||
|
||||
Reference in New Issue
Block a user