mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Use directory.getPath() as the object key
This commit is contained in:
@@ -212,7 +212,7 @@ class Project extends Model
|
||||
return if existingDirectory.getPath() is directory.getPath()
|
||||
|
||||
@rootDirectories.push(directory)
|
||||
@watchersByPath[directory] = watchPath directory.getPath(), {}, (events) =>
|
||||
@watchersByPath[directory.getPath()] = watchPath directory.getPath(), {}, (events) =>
|
||||
@emitter.emit 'did-change-files', events
|
||||
|
||||
for root, watcher in @watchersByPath
|
||||
|
||||
Reference in New Issue
Block a user