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