use var instead of magic

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

View File

@ -1052,7 +1052,7 @@
cooldown.start();
}
return $.bind(window, 'storage', function(e) {
if (e.key === ("AEOS.4chan_x." + g.BOARD + "/cooldown")) {
if (e.key === ("" + NAMESPACE + g.BOARD + "/cooldown")) {
return cooldown.start();
}
});

View File

@ -824,7 +824,7 @@ options =
cooldown =
init: ->
cooldown.start() if Date.now() < $.getValue g.BOARD+'/cooldown', 0
$.bind window, 'storage', (e) -> cooldown.start() if e.key is "AEOS.4chan_x.#{g.BOARD}/cooldown"
$.bind window, 'storage', (e) -> cooldown.start() if e.key is "#{NAMESPACE}#{g.BOARD}/cooldown"
start: ->
cooldown.duration = Math.ceil ($.getValue(g.BOARD+'/cooldown', 0) - Date.now()) / 1000