diff options
| author | Stephen Blott | 2015-02-09 13:21:50 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2015-02-09 13:21:50 +0000 | 
| commit | e11a86afe9375b40ccda20e6a91b020989e2be4c (patch) | |
| tree | 9dff180f7c98447db45d14d84bf424221466f0ce | |
| parent | 0bf605a934115083e700f5de090f39841417482a (diff) | |
| download | vimium-e11a86afe9375b40ccda20e6a91b020989e2be4c.tar.bz2 | |
Fix long-standing bug in sync.coffee.
This is wrong:
  if not key of Settings.defaults
It parses as:
  if (not key) of Settings.defaults
and is always false, so we never return here!
| -rw-r--r-- | background_scripts/sync.coffee | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/background_scripts/sync.coffee b/background_scripts/sync.coffee index ad59f958..d0d501d3 100644 --- a/background_scripts/sync.coffee +++ b/background_scripts/sync.coffee @@ -42,7 +42,7 @@ root.Sync = Sync =    # Only ever called from asynchronous synced-storage callbacks (fetchAsync and handleStorageUpdate).    storeAndPropagate: (key, value) -> -    return if not key of Settings.defaults +    return unless key of Settings.defaults      return if not @shouldSyncKey key      return if value and key of localStorage and localStorage[key] is value      defaultValue = Settings.defaults[key] | 
