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]
|
return if newValue is $.oldValue[key]
|
||||||
if newValue?
|
if newValue?
|
||||||
$.oldValue[key] = newValue
|
$.oldValue[key] = newValue
|
||||||
cb JSON.parse(newValue), key
|
cb JSON.parse(newValue), key[g.NAMESPACE.length..]
|
||||||
else
|
else
|
||||||
delete $.oldValue[key]
|
delete $.oldValue[key]
|
||||||
cb undefined, key
|
cb undefined, key[g.NAMESPACE.length..]
|
||||||
$.on window, 'storage', ({key}) -> onChange key
|
$.on window, 'storage', ({key}) -> onChange key
|
||||||
|
|
||||||
$.forceSync = (key) ->
|
$.forceSync = (key) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user