fix #42
This commit is contained in:
parent
60e1a3c69e
commit
6d69ae3910
@ -795,8 +795,7 @@
|
|||||||
$.bind(prev, 'click', nav.prev);
|
$.bind(prev, 'click', nav.prev);
|
||||||
$.bind(next, 'click', nav.next);
|
$.bind(next, 'click', nav.next);
|
||||||
$.append(span, prev, $.tn(' '), next);
|
$.append(span, prev, $.tn(' '), next);
|
||||||
$.append(d.body, span);
|
return $.append(d.body, span);
|
||||||
return nav.threads = $$('div.thread');
|
|
||||||
},
|
},
|
||||||
prev: function() {
|
prev: function() {
|
||||||
return nav.scroll(-1);
|
return nav.scroll(-1);
|
||||||
@ -807,6 +806,7 @@
|
|||||||
threads: [],
|
threads: [],
|
||||||
getThread: function(full) {
|
getThread: function(full) {
|
||||||
var bottom, i, rect, thread, _len, _ref;
|
var bottom, i, rect, thread, _len, _ref;
|
||||||
|
nav.threads = $$('div.thread:not([style])');
|
||||||
_ref = nav.threads;
|
_ref = nav.threads;
|
||||||
for (i = 0, _len = _ref.length; i < _len; i++) {
|
for (i = 0, _len = _ref.length; i < _len; i++) {
|
||||||
thread = _ref[i];
|
thread = _ref[i];
|
||||||
|
|||||||
@ -588,8 +588,6 @@ nav =
|
|||||||
$.append span, prev, $.tn(' '), next
|
$.append span, prev, $.tn(' '), next
|
||||||
$.append d.body, span
|
$.append d.body, span
|
||||||
|
|
||||||
nav.threads = $$ 'div.thread'
|
|
||||||
|
|
||||||
prev: ->
|
prev: ->
|
||||||
nav.scroll -1
|
nav.scroll -1
|
||||||
|
|
||||||
@ -599,6 +597,7 @@ nav =
|
|||||||
threads: []
|
threads: []
|
||||||
|
|
||||||
getThread: (full) ->
|
getThread: (full) ->
|
||||||
|
nav.threads = $$ 'div.thread:not([style])'
|
||||||
for thread, i in nav.threads
|
for thread, i in nav.threads
|
||||||
rect = thread.getBoundingClientRect()
|
rect = thread.getBoundingClientRect()
|
||||||
{bottom} = rect
|
{bottom} = rect
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user