From f005fcdca105e04e3fcb97f9c836956aaf12a98a Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Tue, 1 Aug 2017 15:55:39 -0400 Subject: [PATCH] Use directory.getPath() as the object key --- src/project.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project.coffee b/src/project.coffee index aceb89cb9..22f6c2bf7 100644 --- a/src/project.coffee +++ b/src/project.coffee @@ -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