use NAMESPACE

This commit is contained in:
James Campos 2011-06-16 11:37:32 -07:00
parent f41c0494de
commit fcff8bc70a
2 changed files with 2 additions and 2 deletions

View File

@ -1557,7 +1557,7 @@
}
watcher.refresh();
return $.bind(window, 'storage', function(e) {
if (e.key === 'AEOS.4chan_x.watched') {
if (e.key === ("" + NAMESPACE + "watched")) {
return watcher.refresh();
}
});

View File

@ -1272,7 +1272,7 @@ watcher =
#populate watcher, display watch buttons
watcher.refresh()
$.bind window, 'storage', (e) -> watcher.refresh() if e.key is 'AEOS.4chan_x.watched'
$.bind window, 'storage', (e) -> watcher.refresh() if e.key is "#{NAMESPACE}watched"
refresh: ->
watched = $.getValue 'watched', {}