Fix lag after settings changes.

This commit is contained in:
ccd0 2017-09-28 16:55:06 -07:00
parent 8662bcf0d5
commit b3279de9a3

View File

@ -641,9 +641,10 @@ else
cb items cb items
$.set = $.oneItemSugar (items, cb) -> $.set = $.oneItemSugar (items, cb) ->
for key, value of items $.queueTask ->
$.setValue(g.NAMESPACE + key, JSON.stringify value) for key, value of items
cb?() $.setValue(g.NAMESPACE + key, JSON.stringify value)
cb?()
$.clear = (cb) -> $.clear = (cb) ->
# XXX https://github.com/greasemonkey/greasemonkey/issues/2033 # XXX https://github.com/greasemonkey/greasemonkey/issues/2033