From 0c021f777e0fe2e6d5dc3b0cb1e1528e7f0caf13 Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Tue, 12 Sep 2017 14:38:49 -0400 Subject: [PATCH] Initialize the new flag and pendingOperations in clear() --- src/config.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.coffee b/src/config.coffee index ea4551652..56b2808ca 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -399,8 +399,6 @@ class Config # Created during initialization, available as `atom.config` constructor: ({@notificationManager, @enablePersistence}={}) -> - @settingsLoaded = false - @pendingOperations = [] @clear() initialize: ({@configDirPath, @resourcePath, projectHomeSchema}) -> @@ -420,9 +418,11 @@ class Config @settings = {} @scopedSettingsStore = new ScopedPropertyStore + @settingsLoaded = false @savePending = false @configFileHasErrors = false @transactDepth = 0 + @pendingOperations = [] @requestLoad = _.debounce => @loadUserConfig()