Use directory.getPath() as the object key

This commit is contained in:
Ash Wilson
2017-08-01 15:55:39 -04:00
parent 1285a89a4b
commit f005fcdca1

View File

@@ -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