From b4d28414df41defaa2dd3a226eb904bfd620426d Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Fri, 28 Feb 2014 16:27:54 -0700 Subject: [PATCH] Fix OPs being built twice --- builds/4chan-X.user.js | 3 +-- builds/crx/script.js | 3 +-- src/General/Build.coffee | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 55b1cc009..8fcc576c9 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -3733,9 +3733,8 @@ className: 'thread', id: "t" + data.no }); - $.add(root, Build.postFromObject(data, board.ID)); + $.add(root, Build[full ? 'fullThread' : 'excerptThread'](board, data, OP)); } - $.add(root, Build[full ? 'fullThread' : 'excerptThread'](board, data, OP)); return root; }, excerptThread: function(board, data, OP) { diff --git a/builds/crx/script.js b/builds/crx/script.js index cfd6d5b7f..d124d3d81 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -3784,9 +3784,8 @@ className: 'thread', id: "t" + data.no }); - $.add(root, Build.postFromObject(data, board.ID)); + $.add(root, Build[full ? 'fullThread' : 'excerptThread'](board, data, OP)); } - $.add(root, Build[full ? 'fullThread' : 'excerptThread'](board, data, OP)); return root; }, excerptThread: function(board, data, OP) { diff --git a/src/General/Build.coffee b/src/General/Build.coffee index c7f11e63c..2693b743d 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -219,9 +219,8 @@ Build = root = $.el 'div', className: 'thread' id: "t#{data.no}" - $.add root, Build.postFromObject data, board.ID + $.add root, Build[if full then 'fullThread' else 'excerptThread'] board, data, OP - $.add root, Build[if full then 'fullThread' else 'excerptThread'] board, data, OP root excerptThread: (board, data, OP) ->