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
$.set = $.oneItemSugar (items, cb) ->
for key, value of items
$.setValue(g.NAMESPACE + key, JSON.stringify value)
cb?()
$.queueTask ->
for key, value of items
$.setValue(g.NAMESPACE + key, JSON.stringify value)
cb?()
$.clear = (cb) ->
# XXX https://github.com/greasemonkey/greasemonkey/issues/2033