Fix crash on Fx/Opera
This commit is contained in:
parent
be267adc57
commit
33af2244da
@ -205,9 +205,10 @@ $.extend $,
|
|||||||
return
|
return
|
||||||
(key, cb) -> $.syncing[key] = cb
|
(key, cb) -> $.syncing[key] = cb
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
$.on window, 'storage', (e) ->
|
window.addEventListener 'storage', ((e) ->
|
||||||
if cb = $.syncing[e.key]
|
if cb = $.syncing[e.key]
|
||||||
cb JSON.parse e.newValue
|
cb JSON.parse e.newValue
|
||||||
|
), false
|
||||||
(key, cb) -> $.syncing[g.NAMESPACE + key] = cb
|
(key, cb) -> $.syncing[g.NAMESPACE + key] = cb
|
||||||
<% } %>
|
<% } %>
|
||||||
item: (key, val) ->
|
item: (key, val) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user