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