diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 00dfe3526..dfeeabc86 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -4172,7 +4172,7 @@ return $.asap((function() { return $.id('boardNavMobile'); }), function() { - return CatalogLinks.toggle.call(el); + return CatalogLinks.toggle.call(input); }); }); }, @@ -4260,7 +4260,7 @@ return post.nodes.comment = post.nodes.shortComment; }, parse: function(req, a, post) { - var callback, clone, comment, href, postObj, posts, quote, spoilerRange, status, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _results; + var callback, clone, comment, href, postObj, posts, quote, spoilerRange, status, _i, _j, _k, _len, _len1, _len2, _ref, _ref1; status = req.status; if (![200, 304].contains(status)) { @@ -4299,12 +4299,10 @@ post.parseComment(); post.parseQuotes(); _ref1 = ExpandComment.callbacks; - _results = []; for (_k = 0, _len2 = _ref1.length; _k < _len2; _k++) { callback = _ref1[_k]; - _results.push(callback.call(post)); + callback.call(post); } - return _results; } }; @@ -8256,7 +8254,7 @@ return true; }, toggle: function() { - var container, containers, node, nodes, replies, reply, thread, _i, _j, _k, _len, _len1, _len2, _results; + var container, containers, node, nodes, replies, reply, thread, _i, _j, _k, _len, _len1, _len2; thread = $('.thread'); replies = $$('.thread > .replyContainer, .threadContainer > .replyContainer', thread); @@ -8276,12 +8274,10 @@ node = nodes[_i]; Unread.node.call(node); } - _results = []; for (_j = 0, _len1 = nodes.length; _j < _len1; _j++) { node = nodes[_j]; - _results.push(QuoteThreading.node(node)); + QuoteThreading.node(node); } - return _results; } else { replies.sort(function(a, b) { var aID, bID; @@ -8296,7 +8292,7 @@ container = containers[_k]; $.rm(container); } - return Unread.update(true); + Unread.update(true); } }, kb: function() { diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index cb4038b51..9d83eefcc 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -4164,7 +4164,7 @@ return $.asap((function() { return $.id('boardNavMobile'); }), function() { - return CatalogLinks.toggle.call(el); + return CatalogLinks.toggle.call(input); }); }); }, @@ -4252,7 +4252,7 @@ return post.nodes.comment = post.nodes.shortComment; }, parse: function(req, a, post) { - var callback, clone, comment, href, postObj, posts, quote, spoilerRange, status, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _results; + var callback, clone, comment, href, postObj, posts, quote, spoilerRange, status, _i, _j, _k, _len, _len1, _len2, _ref, _ref1; status = req.status; if (![200, 304].contains(status)) { @@ -4291,12 +4291,10 @@ post.parseComment(); post.parseQuotes(); _ref1 = ExpandComment.callbacks; - _results = []; for (_k = 0, _len2 = _ref1.length; _k < _len2; _k++) { callback = _ref1[_k]; - _results.push(callback.call(post)); + callback.call(post); } - return _results; } }; @@ -8273,7 +8271,7 @@ return true; }, toggle: function() { - var container, containers, node, nodes, replies, reply, thread, _i, _j, _k, _len, _len1, _len2, _results; + var container, containers, node, nodes, replies, reply, thread, _i, _j, _k, _len, _len1, _len2; thread = $('.thread'); replies = $$('.thread > .replyContainer, .threadContainer > .replyContainer', thread); @@ -8293,12 +8291,10 @@ node = nodes[_i]; Unread.node.call(node); } - _results = []; for (_j = 0, _len1 = nodes.length; _j < _len1; _j++) { node = nodes[_j]; - _results.push(QuoteThreading.node(node)); + QuoteThreading.node(node); } - return _results; } else { replies.sort(function(a, b) { var aID, bID; @@ -8313,7 +8309,7 @@ container = containers[_k]; $.rm(container); } - return Unread.update(true); + Unread.update(true); } }, kb: function() { diff --git a/builds/crx/script.js b/builds/crx/script.js index b228bba8f..780a0c9cb 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4085,7 +4085,7 @@ return $.asap((function() { return $.id('boardNavMobile'); }), function() { - return CatalogLinks.toggle.call(el); + return CatalogLinks.toggle.call(input); }); }); }, @@ -4173,7 +4173,7 @@ return post.nodes.comment = post.nodes.shortComment; }, parse: function(req, a, post) { - var callback, clone, comment, href, postObj, posts, quote, spoilerRange, status, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _results; + var callback, clone, comment, href, postObj, posts, quote, spoilerRange, status, _i, _j, _k, _len, _len1, _len2, _ref, _ref1; status = req.status; if (![200, 304].contains(status)) { @@ -4212,12 +4212,10 @@ post.parseComment(); post.parseQuotes(); _ref1 = ExpandComment.callbacks; - _results = []; for (_k = 0, _len2 = _ref1.length; _k < _len2; _k++) { callback = _ref1[_k]; - _results.push(callback.call(post)); + callback.call(post); } - return _results; } }; @@ -8175,7 +8173,7 @@ return true; }, toggle: function() { - var container, containers, node, nodes, replies, reply, thread, _i, _j, _k, _len, _len1, _len2, _results; + var container, containers, node, nodes, replies, reply, thread, _i, _j, _k, _len, _len1, _len2; thread = $('.thread'); replies = $$('.thread > .replyContainer, .threadContainer > .replyContainer', thread); @@ -8195,12 +8193,10 @@ node = nodes[_i]; Unread.node.call(node); } - _results = []; for (_j = 0, _len1 = nodes.length; _j < _len1; _j++) { node = nodes[_j]; - _results.push(QuoteThreading.node(node)); + QuoteThreading.node(node); } - return _results; } else { replies.sort(function(a, b) { var aID, bID; @@ -8215,7 +8211,7 @@ container = containers[_k]; $.rm(container); } - return Unread.update(true); + Unread.update(true); } }, kb: function() { diff --git a/src/features/misc/cataloglinks.coffee b/src/features/misc/cataloglinks.coffee index b2e3971d9..ab2e2976a 100644 --- a/src/features/misc/cataloglinks.coffee +++ b/src/features/misc/cataloglinks.coffee @@ -21,7 +21,7 @@ CatalogLinks = # it might be incomplete otherwise. $.asap (-> $.id 'boardNavMobile'), -> # Set links on load. - CatalogLinks.toggle.call el + CatalogLinks.toggle.call input toggle: -> $.set 'Header catalog links', useCatalog = @checked diff --git a/src/features/misc/expandcomment.coffee b/src/features/misc/expandcomment.coffee index b9b96e25a..32a0ba17d 100644 --- a/src/features/misc/expandcomment.coffee +++ b/src/features/misc/expandcomment.coffee @@ -62,4 +62,5 @@ ExpandComment = post.parseQuotes() for callback in ExpandComment.callbacks - callback.call post \ No newline at end of file + callback.call post + return \ No newline at end of file diff --git a/src/features/quoting/quotethreading.coffee b/src/features/quoting/quotethreading.coffee index 10e506b9b..96e6f60e2 100644 --- a/src/features/quoting/quotethreading.coffee +++ b/src/features/quoting/quotethreading.coffee @@ -100,6 +100,7 @@ QuoteThreading = containers = $$ '.threadContainer', thread $.rm container for container in containers Unread.update true + return kb: -> control = $.id 'threadingControl'