From aa9d0cf7c55ed68bbe7036c48a70d5ed3741d5c5 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 17 Feb 2015 20:22:23 -0800 Subject: [PATCH] Really fix $.sync. --- src/General/lib/$.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/lib/$.coffee b/src/General/lib/$.coffee index 88ca5173f..9bf3c5f58 100755 --- a/src/General/lib/$.coffee +++ b/src/General/lib/$.coffee @@ -319,7 +319,7 @@ chrome.storage.onChanged.addListener (changes, area) -> newValue = $.oldValue.local[key] ? $.oldValue.sync[key] cb = $.syncing[key] if cb and JSON.stringify(newValue) isnt JSON.stringify(oldValue) - cb changes[key].newValue, key + cb newValue, key return $.sync = (key, cb) -> $.syncing[key] = cb