From 51c41f563cbea62f995dcf473d0ff3cbfd6788ab Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Tue, 7 Jan 2014 10:28:37 -0700 Subject: [PATCH] Shave off a couple lines --- builds/4chan-X.user.js | 8 +++----- builds/crx/script.js | 8 +++----- src/Quotelinks/QuoteThreading.coffee | 2 ++ 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index e5739b798..adf85ddd1 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -5016,9 +5016,9 @@ return true; }, toggle: function() { - var ID, container, containers, nodes, post, posts, thread, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _results; + var ID, container, containers, nodes, post, posts, thread, _i, _j, _k, _len, _len1, _len2, _ref, _ref1; if (QuoteThreading.enabled = this.checked) { - return QuoteThreading.force(); + QuoteThreading.force(); } else { thread = $('.thread'); posts = []; @@ -5044,12 +5044,10 @@ $.rm(container); } _ref1 = $$('.threadOP'); - _results = []; for (_k = 0, _len2 = _ref1.length; _k < _len2; _k++) { post = _ref1[_k]; - _results.push($.rmClass(post, 'threadOP')); + $.rmClass(post, 'threadOP'); } - return _results; } }, kb: function() { diff --git a/builds/crx/script.js b/builds/crx/script.js index 178e32aa7..31361a8e3 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -5019,9 +5019,9 @@ return true; }, toggle: function() { - var ID, container, containers, nodes, post, posts, thread, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _results; + var ID, container, containers, nodes, post, posts, thread, _i, _j, _k, _len, _len1, _len2, _ref, _ref1; if (QuoteThreading.enabled = this.checked) { - return QuoteThreading.force(); + QuoteThreading.force(); } else { thread = $('.thread'); posts = []; @@ -5047,12 +5047,10 @@ $.rm(container); } _ref1 = $$('.threadOP'); - _results = []; for (_k = 0, _len2 = _ref1.length; _k < _len2; _k++) { post = _ref1[_k]; - _results.push($.rmClass(post, 'threadOP')); + $.rmClass(post, 'threadOP'); } - return _results; } }, kb: function() { diff --git a/src/Quotelinks/QuoteThreading.coffee b/src/Quotelinks/QuoteThreading.coffee index f479e6fc9..f4d99c024 100755 --- a/src/Quotelinks/QuoteThreading.coffee +++ b/src/Quotelinks/QuoteThreading.coffee @@ -103,6 +103,8 @@ QuoteThreading = containers = $$ '.threadContainer', thread $.rm container for container in containers $.rmClass post, 'threadOP' for post in $$ '.threadOP' + + return kb: -> control = $.id 'threadingControl'