This commit is contained in:
Nicolas Stepien 2013-03-29 15:15:43 +01:00
parent 0b3c9c662b
commit 1fe9476042

View File

@ -205,10 +205,10 @@ $.extend $,
return return
(key, cb) -> $.syncing[key] = cb (key, cb) -> $.syncing[key] = cb
<% } else { %> <% } else { %>
window.addEventListener '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 , false
(key, cb) -> $.syncing[g.NAMESPACE + key] = cb (key, cb) -> $.syncing[g.NAMESPACE + key] = cb
<% } %> <% } %>
item: (key, val) -> item: (key, val) ->