Fix crash on Fx/Opera

This commit is contained in:
Nicolas Stepien 2013-03-29 15:03:22 +01:00
parent be267adc57
commit 33af2244da

View File

@ -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) ->