From 865c5331baaccac6e1c7be427d655a5203d9781b Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sun, 9 Mar 2014 15:03:21 -0700 Subject: [PATCH] Fix Recursive hiding --- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/Filtering/Recursive.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 88fef8ba9..62790a0fc 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -5166,7 +5166,7 @@ fullID = post.fullID; return g.posts.forEach(function(post) { if (__indexOf.call(post.quotes, fullID) >= 0) { - return recursive.apply(null, [post].concat(__slice.call(args))); + return post[recursive].apply(post, args); } }); } diff --git a/builds/crx/script.js b/builds/crx/script.js index e72c841c5..380b34cc3 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -5218,7 +5218,7 @@ fullID = post.fullID; return g.posts.forEach(function(post) { if (__indexOf.call(post.quotes, fullID) >= 0) { - return recursive.apply(null, [post].concat(__slice.call(args))); + return post[recursive].apply(post, args); } }); } diff --git a/src/Filtering/Recursive.coffee b/src/Filtering/Recursive.coffee index 610492554..ac01949df 100755 --- a/src/Filtering/Recursive.coffee +++ b/src/Filtering/Recursive.coffee @@ -30,4 +30,4 @@ Recursive = {fullID} = post g.posts.forEach (post) -> if fullID in post.quotes - recursive post, args... + post[recursive] args...