fix #42
This commit is contained in:
parent
60e1a3c69e
commit
6d69ae3910
@ -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];
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user