This commit is contained in:
James Campos 2011-04-29 19:26:03 -07:00
parent 60e1a3c69e
commit 6d69ae3910
2 changed files with 3 additions and 4 deletions

View File

@ -795,8 +795,7 @@
$.bind(prev, 'click', nav.prev);
$.bind(next, 'click', nav.next);
$.append(span, prev, $.tn(' '), next);
$.append(d.body, span);
return nav.threads = $$('div.thread');
return $.append(d.body, span);
},
prev: function() {
return nav.scroll(-1);
@ -807,6 +806,7 @@
threads: [],
getThread: function(full) {
var bottom, i, rect, thread, _len, _ref;
nav.threads = $$('div.thread:not([style])');
_ref = nav.threads;
for (i = 0, _len = _ref.length; i < _len; i++) {
thread = _ref[i];

View File

@ -588,8 +588,6 @@ nav =
$.append span, prev, $.tn(' '), next
$.append d.body, span
nav.threads = $$ 'div.thread'
prev: ->
nav.scroll -1
@ -599,6 +597,7 @@ nav =
threads: []
getThread: (full) ->
nav.threads = $$ 'div.thread:not([style])'
for thread, i in nav.threads
rect = thread.getBoundingClientRect()
{bottom} = rect