Log chrome.runtime.lastErrors when getting.

Don't reset `items`, no need to. crbug.com/245798
This commit is contained in:
Mayhem 2013-06-08 21:04:23 +02:00
parent 45fcd8f59d
commit 5c5894198d

View File

@ -263,9 +263,10 @@ $.get = (key, val, cb) ->
else
(syncItems or= {})[key] = val
items = {}
count = 0
done = (item) ->
if chrome.runtime.lastError
c.error chrome.runtime.lastError
$.extend items, item
cb items unless --count