diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 610f3e7b0..078b9bebf 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -11537,13 +11537,8 @@ return $.asap((function() { return $('.mPagelist'); }), function() { - var i, item, items; - - items = [['prev', '<'], ['next', '>']]; - i = 0; - while (item = items[i++]) { - Style.pages(item); - } + Style.pages(['prev', '<']); + return Style.pages(['next', '>']); }); } }, diff --git a/builds/crx/script.js b/builds/crx/script.js index dcbf926c6..3195ee479 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -11525,13 +11525,8 @@ return $.asap((function() { return $('.mPagelist'); }), function() { - var i, item, items; - - items = [['prev', '<'], ['next', '>']]; - i = 0; - while (item = items[i++]) { - Style.pages(item); - } + Style.pages(['prev', '<']); + return Style.pages(['next', '>']); }); } }, diff --git a/src/Theming/Style.coffee b/src/Theming/Style.coffee index 5636975d8..eb80ae9ec 100644 --- a/src/Theming/Style.coffee +++ b/src/Theming/Style.coffee @@ -25,14 +25,8 @@ Style = if g.VIEW is 'index' $.asap (-> $ '.mPagelist'), -> - items = [ - ['prev', '<'] - ['next', '>'] - ] - i = 0 - while item = items[i++] - Style.pages item - return + Style.pages ['prev', '<'] + Style.pages ['next', '>'] pages: ([name, text]) -> el = $ ".pagelist > .#{name}"