mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Use indexOf instead of substring to check path
This commit is contained in:
@@ -30,7 +30,7 @@ class DirectoryView extends View
|
||||
iconClass = 'submodule-icon'
|
||||
else
|
||||
@subscribe git, 'status-changed', (path, status) =>
|
||||
@updateStatus() if path.substring("#{@getPath()}/") is 0
|
||||
@updateStatus() if path.indexOf("#{@getPath()}/") is 0
|
||||
@subscribe git, 'statuses-changed', =>
|
||||
@updateStatus()
|
||||
@updateStatus()
|
||||
|
||||
Reference in New Issue
Block a user