Fix passing of key to $.sync callback in Firefox.

This commit is contained in:
ccd0 2015-07-04 12:49:13 -07:00
parent 60a946e359
commit a34c4a7b73

View File

@ -474,10 +474,10 @@ else
return if newValue is $.oldValue[key]
if newValue?
$.oldValue[key] = newValue
cb JSON.parse(newValue), key
cb JSON.parse(newValue), key[g.NAMESPACE.length..]
else
delete $.oldValue[key]
cb undefined, key
cb undefined, key[g.NAMESPACE.length..]
$.on window, 'storage', ({key}) -> onChange key
$.forceSync = (key) ->