fix name clash

This commit is contained in:
James Campos 2011-01-03 00:59:11 -08:00
parent 452c2e0bca
commit fd94f7da60
2 changed files with 11 additions and 11 deletions

View File

@ -868,14 +868,14 @@ updateAuto = ->
clearInterval g.interval clearInterval g.interval
updateInterval = -> updateInterval = ->
unless n = Number @value unless num = Number @value
n = 10 num = 10
@value = n @value = num
GM_setValue 'Interval', n GM_setValue 'Interval', num
span = $ '#updater #timer' span = $ '#updater #timer'
if 0 > Number span.textContent if 0 > Number span.textContent
span.textContent = -1 * n span.textContent = -1 * num
updateNow = -> updateNow = ->
g.req = request location.href, updateCallback g.req = request location.href, updateCallback

View File

@ -1120,15 +1120,15 @@
} }
}; };
updateInterval = function() { updateInterval = function() {
var span; var num, span;
if (!(n = Number(this.value))) { if (!(num = Number(this.value))) {
n = 10; num = 10;
} }
this.value = n; this.value = num;
GM_setValue('Interval', n); GM_setValue('Interval', num);
span = $('#updater #timer'); span = $('#updater #timer');
if (0 > Number(span.textContent)) { if (0 > Number(span.textContent)) {
return span.textContent = -1 * n; return span.textContent = -1 * num;
} }
}; };
updateNow = function() { updateNow = function() {