Fix passing of key to $.sync callback in Firefox.
This commit is contained in:
parent
60a946e359
commit
a34c4a7b73
@ -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) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user