reddit.js: optimize previous link wrap behavior
commit3fcd978cd5530301cb60e2d2b9ec1be4fa48de2d
authorJoren Van Onder <joren.vanonder@gmail.com>
Fri, 17 Oct 2014 15:14:40 +0000 (17 17:14 +0200)
committerJohn Foerch <jjfoerch@earthlink.net>
Wed, 22 Oct 2014 01:55:58 +0000 (21 21:55 -0400)
tree2b935599992156719efb31526a874a9c1b759092
parent8e4c43750f4f74789d4fa3fcc4a3f310faa7058d
reddit.js: optimize previous link wrap behavior

Checking the display style in the loop doesn't make much sense because
that would only matter if every link on the page was invisible. Even if
this is the case this loop would still not catch that because
dom_add_class() and reddit_scroll_into_view() would later be called with
prev being null.
modules/page-modes/reddit.js