From 6ee8dc83a7f036dda627e1998a18eaa59c749103 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Tue, 30 Jul 2013 15:13:33 +0200 Subject: [PATCH] Fix #1210 We were inserting the same Post twice in QR.posts, once in the constructor, and once in the splice. --- src/Posting/QR.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 8319392a2..c77bdda1e 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -74,7 +74,8 @@ QR = QR.cleanNotifications() d.activeElement.blur() $.rmClass QR.nodes.el, 'dump' - for post in QR.posts.splice 0, QR.posts.length, new QR.post true + new QR.post true + for post in QR.posts.splice 0, QR.posts.length - 1 post.delete() QR.cooldown.auto = false QR.status()