From 013ea195da2b815b081e4efbe20faccb8991d482 Mon Sep 17 00:00:00 2001 From: 8chan Date: Sun, 29 Mar 2015 15:33:50 -0700 Subject: [PATCH] Fix "double dorito" bug (post filter runs twice) Note: This broke post-hover when expand-too-long is used. It's necessary to either come up with an event other than new_post for this (perhaps change_post), or have post-hover.js and other safe scripts expose a method that can be called here. I think the new event is a better idea though. --- js/expand-too-long.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/expand-too-long.js b/js/expand-too-long.js index 6e8b5080..5c355a2f 100644 --- a/js/expand-too-long.js +++ b/js/expand-too-long.js @@ -28,7 +28,6 @@ $(function() { body.html(content); var post = $(body).parents('.post'); - $(document).trigger('new_post', post); } }); });