Simpler $.set for the crx.

This commit is contained in:
Nicolas Stepien 2013-03-29 06:28:26 +01:00
parent 9cf363ad81
commit 1b5695ac82

View File

@ -216,9 +216,7 @@ $.extend $,
items = $.item key, val
chrome.storage.sync.get items, cb
set: (key, val) ->
item = {}
item[key] = val
chrome.storage.sync.set item
chrome.storage.sync.set $.item key, val
<% } else if (type === 'userjs') { %>
do ->
# http://www.opera.com/docs/userjs/specs/#scriptstorage